I'm just curious as to the possibility of loading and executing elf files on OSX. I know the standard executable format is MACHO, but NASM is unable to generate debug information for MACHO objects (and I am required to use NASM). I imagine its a long shot, but I don't suppose I can use ELF files. I can build them with NASM, but I can'...
I'm studying for an exam and I'm having difficulty with a concept. This is the pseudo code I am given:
int mutex = 0;
do {
while (TestAndSet(&mutex));
// critical section
mutiex = 0;
// remainder section
} while (TRUE);
My instructor says that only two of the three necessary conditions (mutual exclusion, progress, and bounded ...
I just read a pretty interesting article on how android (and i assume other OSs) work when low on memory. How is this done theoretically? Is it similar to Java's object serialization?
...
Is there a way to assign one HID device to a program and then another identical HID device to another program without each of them grabbing randomly the first HID device they enumerate? I'd need some kind of unique identifier. Is there such thing? On windows xp/vista/7.
...
Hello everyone:
We know that malloc() and new operation allocate memory from heap dynamically, but where does heap reside? Does each process have its own private heap in the namespace for dynamic allocation or the OS have a global one shared by all the processes. What's more, I read from a textbook that once memory leak occurs, the miss...
Dealing semaphores and mutex, kernel and shell, which book shud i refer, as i am a beginner, i need to work with my basics as well.
...
I have posted query previously and i am repeating same I want to modify igmpv3 (Linux) which is inbuilt in kernel2.6.-- such that it reads a value from a file and appropriately decides reserved(res 1) value inside the igmpv3 paket which is sent by a host.
I want to add more to above question by saying that this is more a generic questio...
I'd like to know how it works - whether it checks if process can read/write/execute memory on every access, or it does it only once? But when it does it only once, and all processes are in a single address space, how are these other hostile processes are prevented from accessing memory from not their's areas? How is it solved in Mungi OS...
I recently asked myself: If a program, like Mozilla Firefox for example, is started - the control must be somehow given to it. But when the program crashes, why doesn't my whole system crash like in early Windows version?
How can Windows take back the control from the program, or even not give it to it fully?
(Note: This is not my ho...
I was just wondering if it was possible to make an operating system in python. Nothing fancy. Maybe not even a "real" operating system with a kernel and all. Just a python program that is run when someone inserts the disc containing it that will make a fullscreen display on top of the installed os.
...
Hi,
I'm just wondering where in the source files of a linux kernel I would be able to find the code which takes care of copying and pasting? I'm interested in modifying it but don't know where to look to find it.
Thanks
...
I recently wrote a script which queries PyPI and downloads a package; however, the package gets downloaded to a user defined folder.
I`d like to modify the script in such a way that my downloaded files go into a temporary folder, if the folder is not specified.
The temporary-files folder in *nix machines is "/tmp" ; would there be any ...
I am recently working on a java desktop application which needs to track a path of file which has been recently moved to somewhere in native file system from the known source.
For Example : - Let's suppose i have a file A.txt in %TEMP% folder (C:\Users\Admin\AppData\Local\Temp\A.txt). Now Operating system moves that file to, suppose my ...
SysInternals's WinObj can list all device objects.
I wonder how it can list the devices.
Is there any open source we can read?(or a code snippet)
What is the most significant function I should know?
...
Hi,
I have written a small program where the program works differently on different operating systems (xp, win7) The problem is the program reads some float numbers such 2,686.
One operating system (win7) convert it to float true, but on xp it goes wrong and print it 2686. How can I understand which symbol the operation system uses fo...
Hi,
I am trying to build a Quadtree data structure(or let's just say a tree) on the secondary memory(Hard Disk).
I have a C++ program to do so and I use fopen to create the files. Also, I am using tesseral coding to store each cell in a file named with its corresponding code to store it on the disk in one directory.
The problem is tha...
What OS would you choose for Visual Studio 2010?
I have been running Vista for VS 2008 with a Virtual PC running Vista for VS 2010 Beta 2.
(I didnt want to run them side by side)
Now that VS2010 is launched, I want to re-install my machine (2.2 GHz Dell XPS laptop with 4Gb Ram) , should I load Vista or sould I try out Windows 7?
I am ...
Hello,
I was just wondering what other CPU architectures are available other than INTEL & AMD. So, found List of CPU architectures on Wikipedia.
It categorizes notable CPU architectures into following categories.
Embedded CPU architectures
Microcomputer CPU architectures
Workstation/Server CPU architectures
Mini/Mainframe CPU archite...
I'm using the Kindle as an example of an embedded system to illustrate some points I'm making in a paper. Since I'm not an expert in all the technologies used, can those aware of them point them out.
For example:
the GUI is programmed in embedded Java (which is probably a bad choice)
Whispernet is used for the wireless platform
Wh...
Hi all,
First of all, sorry for the vague title.
Let me explain. At work we're currently using SunGrid
I've been assigned a project to create a web interface wrapper for interacting with the engine. i.e. displaying users jobs, submitting jobs via a nice GUI etc. (most of the sgrid commands output xml which is nice)
My question for yo...