operating-system

create operating system

is there any easy tutorial to show how to make operating system says hello world using c++ ...

What is TLB shootdown

Hello guys, Can some one explain what is a TLB shootdown in SMPs. I am unable to find much information regarding this concept. Any good example is very much appreciated. ...

Why I/O-bound processes are faster?

Typically the CPU runs for a while without stopping, then a system call is made to read from a file or write to a file. When the system call completes, the CPU computes again until it needs more data or has to write more data, and so on. Some processes spend most of their time computing, while others spend most of their time waiting for...

CPU bound and I/O bound scheduling

Can a single processor do I/O and CPU bound tasks together? For example, arrival time CPU time I/O task time p1 .............................0........................................10........................................3 p2..............................2........................................

How does an operating system handle network bandwidth allocation?

How does an operating system allocate bandwidth to different processes? For example, consider that I am running a BitTorrent client and streaming a video on YouTube. Let's suppose my bandwidth is x kbps. How does the operating system decide that my torrent client will consume a higher bandwidth than say Firefox which is streaming the ...

Is it Possible to Create Mac OS X installer from scratch ?

I saw page when I was Searching with the key word "Open source" http://www.opensource.apple.com/release/mac-os-x-1064/ I just want to ask whether it is possible to build a entire OS using the source code ? and if yes then what exactly needs to be done. ...

PHP: Filter MYSQL array

Hey, I'm developing an visits counter and I'd like to increase a number depending on the browser and the operating system. For example: Firefox Mac OS X Safari Mac OS X Firefox Mac OS X Firefox Linux Then the website would display Safari on Mac OS X 1 visit Firefox on Mac OS X 2 visits Fire...

Is it possible to detect if the hardware display has completed the process of switching between display modes?

The reason I ask is because I just bought a new LCD that takes approximately 5 seconds to change between display modes, such as from 1920x1080x32bpp to 1280x800x32bpp. Does a programmatic solution exist to detect if the display is ready for video output? ...

I want to write an OS for the Lego NXT 2.0. Where to start?

I want to write an OS for the Lego NXT 2.0, but I can not find information about the architecture of this system. Does anyone have any examples? Or any other useful information on the topic? ...

How/where is the working directory of a program stored?

When a program accesses files, uses system(), etc., how and where is the current working directory of that program physically known/stored? Since logically the working directory of a program is similar to a global variable, it should ideally be thread-local, especially in languages like D where "global" variables are thread-local by def...

Threads in userspace and yield

I am supposed to implement a userlevel threads library in C. To do so, I need to implement yield(), createThread() and destroyThread() functions. I believe I've got the basics right: To keep track of threads, I'll use a queue of ThreadControlBlock elements (which resemble PCBs in an OS) that look like this: struct ThreadControlBlock { ...

Why an Operating System(OS) is called as hardware dependent/platform dependent

Why we are saying that the OS is purely hardware dependent (other than hardware peripherals like RAM/USB etc)? The word hardware independence means, the OS should run on any platform with out any underlying hardware abstraction layer like ARM/x86/xtensa/starcore etc etc. Can you please give me the exact hardware dependencies in a simple...

Is possible in a Mac App build an iPhone Static Library xcode project?

Hello, I see that I can build iPhone Static Library xcode project with -xcodebuild into the terminal. So I create a Mac App that execute a shell script which build the project. My question is if I can hide my iPhone Static Library project and its classes from user's eyes. Thank you in advance ...

Inner-workings of Keyboard Event Handling under Linux

When I press a keyboard's key on some GTK application under Linux, what happens exactly? How does a key get received (from which device), interpreted, passed to the program, and then handled? ...

what is difference between 32 bit vs 64 bit OSs and processors (intel arch and WIndows)

hi, I just know the only differences I know is that size of the registers for 64 bit arch is 64 bits and for 32 bit arch is 32 bits. Also the addresses are 64 bits in 64 bit processors. Any other differences ? ...

how a 32bit processor can address 4 gigabytes of memory.

I didnt understand this because 2^32 is 4 giga bits not bytes right ? since 2^2 * 1024* 1024* 1024 bits right ? Am I wrong ? ...

Can't Build a simple Cuda Program using Xcode !!!

I'm using Xcode 3.2 on Mac OS 10.6 to build a very simple HelloWorld program for CUDA but it fails to build .. any ideas !!! this is the code : #include <iostream> #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <CUDA/CUDA.h> __device__ char napis_device[14]; __global__ void helloWorldOnDevice(void){ napis_d...

How does OS locate contents on disk that have not been loaded into memory when page fault exception is raised?

When a page fault exception is raised because the content CPU is trying to access have not been loaded in to memory, how does the OS locate the missing content on the secondary storage (e.g. hard disk)? Thanks for your explanation in advance. -ivan ...

What happens when windows encounters an unknown instruction in a binary?

We have a binary compiled with SSE3 optimizations which end up using the instruction LDDQU. Now when this code is executed on a Windows system (Single core, XP2) which has only SSE1,2 support (as seen through CPU-Z tool) then application crashes. (924.4f0): Invalid lock sequence - code c000001e (first chance) ... 001700a10 f20ff00430 ...

Operating system - release locked resource of a crashed process

Hi all I would like to know the capability of OS eg. HP-UX where my java application is deployed. If the java application has a server socket which is listening infinitely, it acquires the system resource ie.. port from OS and use it. Now, if the port is locked and the java process were to die(kill -9 pid) before releasing the lock......