operating-system

how the stackoverflow affect variable ?

how the stackoverflow affect variable ? ...

Languages using for OS development before C

I know that C is the standard programming language for operating system development, but out of curiosity I was wondering what preceded it. What was the main programming language used for operating system development before C? ...

What are 16, 32 and 64-bit architectures?

What do 16-bit, 32-bit and 64-bit architectures mean in case of Microprocessors and/or Operating Systems? In case of Microprocessors, does it mean maximum size of General Purpose Registers or size of Integer or number of Address-lines or number of Data Bus lines or what? What do we mean by saying "DOS is a 16-bit OS", "Windows in a 32-...

How to Build a basic Operating System with few features?I am looking for Code with Tutorial.

I found one here http://mjc88.0catch.com/ but then some files and description is missing. Please direct me to one, complete open source OS, which is realistic to be build by a single person and i can extend it with my ideas. ...

what is Address space layout randomization

Possible Duplicate: Memory randomization as application security enhancement? hi, Can some explain me please what address space Layout Randomization is and how is it implemented. How does this technique affect the stack, heap and static data. Also I am interested in any papers that explain about the address space Layout Rando...

The stack is created by compiler or OS/architecture

This question is a follow up of my previous question http://stackoverflow.com/questions/3572610/stack-growth-direction I would like to know whether stack is created by a compiler or OS/architecture ? Also how does OS knows about these compiler specific things ? For ex: C++ allows variables to create data on stack and heap while java a...

What are the behavioral differences between a daemon and a normal process?

I know that daemons run in the background mostly i.e. they require very less interaction from the user. Wikipedia lists some of the types of daemons that commonly exist: Dissociating from the controlling tty Becoming a session leader Becoming a process group leader Staying in the background by forking and exiting (once or twice). This...

In which language is Chromium OS written?

I wonder on which language is Chromium OS written.I guess they have used C/C++ but did they put something different(Go,).Did they used Assembly for low level code as I know that they had to change some things to make booting a lot faster? ...

Real mode BIOS routine and Protect Mode

I am doing some OS experiment. Until now, all my code utilized the real mode BIOS interrupt to manipulate hard disk and floppy. But once my code enabled the Protect Mode of the CPU, all the real mode BIOS interrupt service routine won't be available. How could I R/W the hard disk and floppy? Do I need to do some hardware drivers now? How...

Assembly language function template. - A simple lazy convention?

Hi geeks~ I am developing some functions in assembly language, at the beginning, my functions passing the parameters in the following 3 manners: registers global data in .data section through stack Now I found that the mix of the above 3 manners is making things complicated. And I always fall into the situation where I have to scrat...

Is there any possibilty of Linux to become Paid OS, when it became the most popular?

Is there any possibility of Linux to turn into Paid OS, after it reaches most of the people in the world. How much of the probability are there. Experts, please lightup my mind. ...

Will upgrading of windows server 2003 to windows server 2008 results in loss of data

I have installed operating system windows server 2003 on my PC. I have installed some additional softwares like visual studio 2010, sql server 2008 & MOSS 2007 on windows server 2003. Now I want to upgrade my windows server 2003 with the new operating system windows server 2008. I am not aware about the whether upgrade will loose data st...

Operating System from scratch

I have been asked to choose a project for my Operating System course at my university. I was bubbled with the idea of making an Operating System from scratch in Python. I have a few limitations: I have only 3 months. I want to do it in Python. I can put in say 20-30 hours every week into it. I want to know, how feasible is the ...

BIOS INT 13H with AH=2 can only read 72 sectors each time. Why?

I am using Bochs 2.4.5 to write a boot sector code. I use the INT 13H to read sectors from floppy. But I found that if the sector count to read > 72, the INT13 will fail. And the return code is AH=1. Below's the code and here is the INT13. The return code is AH=1. Why can't the INT 13H read more than 72 sectors? xorb %ah, %ah xor...

Where to use volatile?

I read about volatile keyword, but I don't know in what situations I should use it. When the memory (variable) is getting updated and process is not aware of that? In what cases should drivers use volatile variables? ...

i want to know if the ide we use contains linker or not

Is the Linker part of the Operating System or the Compiler/IDE? ...

Why does CPU access memory on a word boundary?

Hi experts~ I heard a lot that data should be properly aligned in memory for better access efficiency. CPU access memory on a word boundary. So in the following scenario, the CPU has to make 2 memory accesses to get a single word. Supposing: 1 word = 4 bytes ("|" stands for word boundary. "o" stands for byte boundary) |----o----o...

How can I get English username on French Localized Windows ?

I am using French Localized Windows Operating system. I am using GetUserName() Windows API to get current logged in username for the process. On French Windows it returns "Système" instead of "System" for the Service process. Because of this our System Software failing in a specific scenario. Is there any way to get English UserName...

Global Descriptor Table and Local Descriptor Table

I want to know if the global descriptor table resides in each process memory space or it is shared among all processes. What about LDT? Where is the LDTR stored? Thank you. ...

Unused Return Status Codes in C

I want to return a unique status code to a waiting parent process from a child process through exit(), based on the execution of child's code. If execvp fails, then the exit() is used. I assume that if execvp is successful, the command executed will send its status code. pid=fork(); if(pid==0) { if(execvp(cmdName,cmdArgs)==-1) {...