OS Heap and OS stack in an multicore OS
I am writing a small smp kernel and now I am adding support for the second core. Here are a few questions that are cropping up
a) I believe each core would have its own stack and that has the be defined in lds file
b) I believe each core would have its own heap (for malloc) and that has the be defined in lds file
c) common data structures should go in bss section
d) For per cpu variables a _per_cpu_area for each core to be set in lds file and a register say r0 would always point to per cpu section
e) locks across cores to be help in bss section
Are these assumptions correct ? Please verify or raise any problem
I'm studying OS synchronization problems. I understand semaphores and their use in reader-writer and producer-consumer situations. I'm not getting the concept of monitors, though. Can someone help me
Platform: OS X Mountain Lion Python 2.7.4 I have a piece of script that needs to convert all eol characters in a string to unix style \n. I get a string supplied by Qsci.Scintilla.text() referenced to
I have been trying to get version of OS using C#, I get version of Window using Request.UserAgent but what about system such as Linux version, or OS X version, I am able to get the OS Name but not ver
Does anybody know the default environment variables in MAC OS X? What is the variable for user's folder? For example if the path in MAC OS X is /Users/someuser/Applications Then what is the variable
I am developing a program which needs to use os.system because of the old Python limitations. Currently I'm stuck in one small spot. os.system(C:\\FIOCheck\\xutil.exe -i get phy +HBEA + >C:\\FI
Hi Could anyone tell me what is the maximum application size supported by iphone? Also what is the maximum heap size and stack size supported? Application goes 'out of memory' very soon...
Should i use __APPLE__ & __MACH__ or __APPLE__ for my preprocessors? I found about the __APPLE__ here: How to detect reliably Mac OS X, iOS, Linux, Windows in C preprocessor? and here http://sourc
I'm trying to work out how to store and then print the current stack in my C++ apps on Mac OS X. The main problem seems to be getting dladdr to return the right symbol when given an address inside the
Neither ISO C nor POSIX offer functionality to determine the underlying OS during runtime. From a theoretical point of view, it doesn't matter since C offers wrappers for the most common system calls,
my application doesn't seem to be able to prevent system sleep on Mac OS Mountain Lion. Here is what it should do: A Cocoa application gets launched at a certain time using the launchd process. Preve
We have an application that we're porting to Mac OS from Windows. Once installed, the user can customize the functionality of the application by editing certain approved data files with a text edito
I am under the impression that Launch4J cannot create launchers for OS X. Correct me, if I am wrong. I would like to use something similar so I can set the initial heap size/ max heap size for my Jav
What size should an application icon and menu bar icon for OS X be? I can deal with small resolution displays but what about Retina - does an icon displayed on the menu bar (e.g. 20 x 20 ) will be sm
Is't there a NSActivityIndicatorView for Mac OS X like the UIActivityIndicatorView for iOS? How can I show a spinning gear during long activities?
I'm looking for a pointer in the right direction to get started with writing an iPhone app that sends commands to OS X, for example telling OS X to sleep. I can't seem to find the relevant part of the
For simplicity,let's suppose it's on a single core architecture. OS' main responsibility is to assign CPU time to different processes. When does it check signals? My bet is that it checks it when swit
hi my new app update runs only on 3.1.3 OS and some people who have older os [3.1.2] can't run the application on the iphone .. does it way to solve this ? and my app runs on 3.1.2 iphone os?
I have two pages redirection in my index.php. The pages are example_system_os.php and example_mobile_os.php. How to determine the user's operating system in PHP?
what GUI libraries are available for Blackberry OS 5.0 development?
I mean, deep down in the core of an Operating System API, is there an interrupt 'call' for each basic function a program requests from the OS?
Is it possible to create an AppBar in OS X like you can in Windows? As another possibility can you reserve desktop/screen space like the dock bar does? Eg. When you maximize a window it will not cover
I'm using emacs on both Mac OS X and Ubuntu. My .emacs is mostly the same for both platforms, with a couple of lines concerning local fonts and other OS-related stuff. As I usually do additions to my
Recently, I installed OS X Mavericks, and it seemed to have messed up my development environment. I got this message after running 'rails new first_app': Your user account isn't allowed to install to
I want to upgrade my leopard osx to snow leopard, and i want to know if it will erase my data or will only upgrade the OS and leave all my data and app intact?
Is there any way to get the OS name the user is currently using?
What does the technology stack for mobile applications (native and HTML5) look like for the new Sailfish OS announced by Jolla? There is little information available in one central place on the Sailfi
I want to handle os level events in java. I need to do is to perform some logic on key press. I find jni is used for this purpose but don't know how. I don't need to handle event on gui. my applicatio
I'm trying to install valgrind on os x (snow leopard/10.6.3). When I run the provided ./configure script I get an error saying: checking for the kernel version... unsupported (10.3.0) configure: error
Is fprintf thread safe on OS X? If so, where is this documented?
I have been looking at JVM heap sizes on os x both in eclipse and intellij and running applications directly through the command line and I'm seeing a weird behavior I am hoping someone can explain.
When a page fault occurs the MMU raises and exception (interrupt). The OS stops the current processes and addresses this raised interrupt. 1) Does this mean that (for 68K architecture where there are
How to get keyboard input in an Homemade OS?
In several SO's question there is these lines to access the parent directory of the code, e.g. os.path.join(os.path.dirname(__file__)) returns nothing and os.path.join(os.path.dirname(__file__)) retur
Am getting 104 Gp heap memory using command -Xms500m -Xmx139000m Am usig core i5 processor 64 bit Windows 7 Os. 500 Gp harddisk. 4GB RAM Only I Just want to know from where Jvm takes memory of 104 GB
When our application finishes its work, what does happen with memory allocated by the system (for our JVM). Does GC delete all objects? How does JVM release memory and how does Mac OS clean up JVM pro
I have created a script to detect OS version of windows with the help of the internet, but Now I am stuck at detecting Mac OS versions. I have no Mac OS to test the code and to find out what to use an
I am building the Android OS on Mac OSX (Lion), and Eclipse as an IDE. I am trying to understand certain parts of the OS however this requires performing many searches throughout the project. These se
I have SOLARIS 10 OS SOLARIS OS was upgrade to new version as the following version - 144488-02 Example of OS version verification: uname -v Generic_144488-02 . uname -a SunOS star1a 5.10 Generic_1
According to the official documentation, os.path is a module. Thus, what is the preferred way of importing it? # Should I always import it explicitly? import os.path Or... # Is importing os enough? i
I want to grep the error's out of a log file and save the value as an error. When I use: errors = os.system(cat log.txt | grep 'ERROR' | wc -l) I get the return code that the command worked or not.
I am not sure how am I supposed to setup SDL to work with my mac. I have OS X 10.8. I remember that some time ago on the SDL page there were development libraries for OS X, Win, and Linux. Now the OS
Windows hooks allows you to poke inside other processes and sometimes alter their behaviors. Is there such thing for Mac OS X? Thanks!
I am trying to install Git on Mac OS X Leopard. I'm trying to avoid the MacPorts/Fink route. I'm also trying to avoid the installer on Google because I've gotten very far on my own, but if I have to I
How do you make a OS that is compatible with Windows programs? I use vb but is there another language i could learn it Maybe I could try a Windows Kernel but HOW??
I was trying to install MySQL 5.6.17 on Mac OS X. On the instruction, it says MySQL installation requires a Mac OS X user account named `mysql'. A user account with this name should exist by default
can some owners of Android devices please come forward and publish the data that their phones provide as: os.android.Build.BOARD os.android.Build.BRAND os.android.Build.DEVICE os.android.Build.DISPLA
i want to know in Detail comparison between iPhone OS 3.0 and 3.1.3 and also want to to about all newly added features in OS 4.0 so please give a link or some source which gives the comparison and New
I accidentally removed /Library/Python on OS X Leopard. How can I reinstall that?
How to find os x uptime history? There is last reboot command on termina which reports last reboot history. How do I write a program with objective C that gets all uptime history ? Thanks in advance
I would like to have the OS and the Browser in the body class. I need that for pixelperfect styling, because the fonts do not behave the same way in different OS / Browser configurations. After some g