operating-system

Is the CPU wasted waiting for keyboard input? (generic)

I was wandering if there's a way in witch the OS doesn't need to cycle ad infinitum waiting for the input from keyboard (or other input device) and if there are any OS using that. I can't believe that we do need to waste cycling just to wait for input, why can't the input do something once is pressed instead of having the machine to wait...

Should I study Operating Systems or Compilers?

I have a compiler book, Compilers, and an operating systems book, Operating System Concepts. I have read some of both and, eventually, I plan on completing both. However, for right now, I would like to pick one of them to focus on. I want to read something that will help me develop some good practical skills, via exercises, small project...

Change settings of a running process

Hi, I noticed that when a process starts for the first time, it statically reads some system parameter info only once and keeps it until terminated which means, that if there is some modification to the system parameters already read by the process, they wouldn'y reflect until the process is restarted. e.g. Launch Notepad and type ';...

How to read 'List separator' from OS in Java?

I am writing a CSV exporter in Java that should respect the user's custom settings, especially the "List separator" to use as a delimiter. In Windows, one can set this List separator in Control Panel -> Regional and Language Options -> Regional Options -> Customize I don't know about the other operating systems, but I'm pretty sure t...

Listening to print job event invoked using File menu from Java

I'm interested in knowing how can my Java program listen to the Print event generated by the underlying OS. As my project is based on Java, the Print job event listener should not be platform depended. To be more specific my program will be running on the background and should be notified of the print job if a user is trying to print pag...

How to transform Win2K3 into a Workstation Developement OS ?

Hello guys, Here is a question not directly related to programming. Being fed up with Microsoft Windows XP Professional, and the lots of eye-candy, I want to try Microsoft Windows Server 2003 as the main OS on my development PC. (The other reason is a better version of IIS than 5.1). And knowing that Win2K3 was originally designed as...

Linux Programming Book

I'm looking for a good book on Linux system programming and wondered whether anybody could recommend an up-to-date appropriate book that covers the subject well. Things like: I/O and fileystems Thread and processes etc... Can anybody suggest an appropriate book that they've read/used, not just something that they've seen on Amazon ...

How to find or calculate a Linux process's page table size and other kernel accounting?

How can I find out how big a Linux process's page table is, along with any other variable-size process accounting? ...

How to load kernel into memory from CD-ROM using Assembly (NASM)

Hello Everyone, I'm writing a bootstrap and kernel for myself and both bootstrap and kernel will be burn on a CD-R and will function as a CD-live. It is not a linux CD-Live or something else,is totally my own bootloader and kernel. I do not want to use other booloaders (i.e. GRUB) so please don't suggest me to use them. Here is my ques...

How do I configure an ATA hard disk to start generating interrupts?

RESOLVED After much confusion and frustration, I finally got my hard disk to interrupt. :D It basically came down to the fact that I kept reading the status register instead of the alternate status register. A few other things were messed up to boot, but the point is my hard disk driver is finally starting to take shape. Now, for others...

For kernel/OS is C still it?

I like operating systems and would eventually like to become a OS developer mostly working on kernels. In the future will C still be the language of choice and what else should I be trying to learn? ...

What happens to memory that is not freed after end of program?

Duplicate: What REALLY happens when you don’t free after malloc? Let's say, for example: int main() { char* test = new char[50000]; return 0; } What happens to the allocated memory after the program had finished? Does it get freed for other applications immediately? Or perhaps after some time? Or maybe it's lost to the system...

Is it bad practice to disable OS-based 'Features'?

One thing that I can't get my head around is the persistent questioning here, and elsewhere on the web, about disabling OS-based 'features'. People are forever asking how to disable default OS shortcuts (like copy-paste, the Windows key, etc.), or disabling features programmatically. Surely this is very, very bad practice? To modify a...

Problem on Tag "Filesystem"

For recreational reasons I wrote a PHP class that classifies files with tags instead of in a hierarchical way, the tags are stored in the filename itself in the form of +tag1+tag2+tagN+MD5.EXTENSION and thus I'm stucked with the chars limit (255) imposed by the FS/OS. Here is the class: <?php class TagFS { public $FS = null; f...

What is the most violent way that an application can terminate itself (linux)

I'd like to emulate violent system shutdown, i.e. to get as close as possible to power outage on an application level. We are talking about c/c++ application on Linux. I need the application to terminate itself. Currently i see several options: call exit() call _exit() call abort() do division by zero or dereference NULL. other option...

Developing Kernels to support Multiple CPUs

I am looking to get into operating system kernel development and figured my contribution would be to extend the SANOS operating system in order to support multiple core machines. I have been reading books on operating systems (Tannenbaum) as well as studying how BSD and Linux have tackled this challenge but still am stuck on several conc...

Methodology for upgrading OS Kernel

I am looking to get into operating system kernel development and figured my contribution would be to extend the SANOS operating system in order to support JDK 1.6 and 1.7. I have been reading books on operating systems (Tannenbaum) as well as studying how BSD and Linux have tackled this challenge but still am stuck on several concepts. ...

Adding Blue Screen of Death to Non-Windows OS

I am looking to get into operating system kernel development and figured and have been reading books on operating systems (Tannenbaum) as well as studying how BSD and Linux have tackled this challenge but still am stuck on several concepts. If I wanted to mimic the Windows Blue Screen of Death on an operating system, would I simply put...

How could an assembly OUTB function cause a triple fault?

In my systems programming class we are working on a small, simple hobby OS. Personally I have been working on an ATA hard disk driver. I have discovered that a single line of code seems to cause a fault which then immediately reboots the system. The code in question is at the end of my interrupt service routine for the IDE interrupts. Si...

Tool to track application installer actions? (Win)

I need to find out all the file system and registry operations that intstaller of some application performs. Is there a software tool for this? OS is windows xp, if that matters. ...