operating-system

Accessing system resources through a web page

Hi all, Is it possible to access system resources via a web page? Specifically I would be interested in accessing system calls in order to put the computer into standby or sleep. At this point, I am language-independent. I would imagine that some sort of special access would need to be granted before anything of this nature occurs. ...

Find out users browser and operating system

Is there a way in ASP.Net to find out the browser and operating system of the user? Thanks Jamie ...

Operating system in NOKIA phones

I want to know what operating system NOKIA smart-phones use? Which programming language is used to write it and is it possible to do kernel level programming for these systems? Can we use C codes to change the system software? Libraries are available or not? I have never coded for mobile phones. So if possible give me a link to the page...

Monitor Synchronization: Implementing multiple condition variables

I am implementing monitor synchronization. I was wondering how does implementing multiple condition variables works. So a condition variable has method wait() which puts it on the wait queue for a specific lock tied to this condition variable. So if I have multiple condition variables, do each wait call create its own separate wait queue...

Are there any operating systems that have zero C, zero C++ and zero assembly code?

If so, please list some of them. Thanks ...

How exactly does OS protect kernel

Hello, my question is how exactly does operating system protect it's kernel part. From what I've found there are basically 2 modes kernel and user. And there should be some bits in memory segments which tels if a memory segment is kernel or user space segment. But where is the origin of those bits? Is there some "switch" in compiler tha...

Preventing too many LoadLibrary/FreeLibrary.

Hi. I'm writing a proxy library (called Library A) that is just an interface to another DLL (called Library B) that may be present or not on the system. The idea is that a program would link to this library A instead of the original library B ; and Library A would handle the errors if Library B wasn't installed on the system. So a typi...

Deocde and dispatch interpretation vs Threaded interpretation

Hi, I am trying to understand the practical difference during the execution of a program in Deocde and dispatch interpretation and Threaded interpretation. Example of both will really help. I understand how Java bytecode works and how an assembly language works. But where does DDI and TI fit in? Context: Virtual machines: versatile ...

develop c++ without Xcode IDE

I want to develop c++ programs on mac os and I have installed Xcode with a bunch of frameworks. However I would like to write code without Xcode IDE but just write my own makefile and directly compile/link with gcc (shipped with Xcode). Take a opengl program as example I tried to compile it with the command gcc -I/usr/include/ ...

How Linux Operatin g System maintains Page Table ?

Does page table per Process or per System ?. Is KERNEL maintain entire single shared page table for all process ? ...

Is Deadlock recovery possible in MultiThread programming ?

Process has some 10 threads and all 10 threads entered DEADLOCK state( assume all are waiting for Mutex variable ). How can you free process(threads) from DEADLOCK state ? . Is there any way to kill lower priority thread ?( in Multi process case we can kill lower priority process when all processes in deadlock state). Can we attach th...

What is the difference between DMA and memory-mapped IO?

what is the difference between DMA and memory-mapped IO? They both look similar to me. ...

Systems programming in haskell?

Hey guys, Ive been thinking...Is it possible to go very low level in functional languages like haskell?(like making a kernel or device driver).And will functional features (like monads) be fast and efficient there? Thanks in advance ...

register for an event in Windows

Hi I want to do something when a memory stick attached to PC. Now I use a timer and check it in every tick whether any memory stick is plugged(use DriveInfo or with querying WMI) Is there any event driven model available to do? for example i use an event in my program that raise whenever a memory stick is plugged in to computer? ...

how the terminal control the applications started by themself

Normally, we started applications from the terminals(or console), and the terminal which starts the applications will be the standard io of the applications. If we close the terminals, the applications started by the terminal will normally be closed as well. But for those daemon processes are not closed. My questions is how terminal de...

Code with a potential deadlock

// down = acquire the resource // up = release the resource typedef int semaphore; semaphore resource_1; semaphore resource_2; void process_A(void) { down(&resource_1); down(&resource_2); use_both_resources(); up(&resource_2); up(&resource_1); } void process_B(void) { down(&resource_2); down(&resour...

How to create a basic operating system

Possible Duplicate: How do you write a basic operating system? I want to create a basic operating system. Which can just boot up and I want to run a calculator in it. Though I am pretty good in maths, I am quite new to C programming. I have 28 days to complete the project. I am ready to slog day in day out. Is it possible to d...

How can I find out how many GDI objects my process is allowed to create?

There's a registry key where I can check (& set) the currently set GDI object quota for processes. However, if a user changes that registry key, the value remains the old value until a reboot occurs. In my program, I need to know if there's a way to determine, programatically, how many more GDI objects I can create. Is there an API for g...

what are non-unicode applications

As we know, in windows system, we can set locale language for non-Unicode programs in "Control Panel\Clock, Language, and Region". But what does a local language mean for an application? Since to my understanding, an application is a compiled binary executable file, which only contained machine code instructions and no data, so how the c...

What is meant by statically relocated or static relocation of a segment

The elf format executable contains various segments like code, data, bss, stack etc. If we say that the segment xyz is statically relocated what does that mean? The elf format binary contains relative addresses for each segment. When we say statically relocated does it mean that the relative addresses are actually the physical addresses...