operating-system

How does the 'ls' command work in Linux/Unix?

I would like to know exactly how the "Is" command works in Linux and Unix. As far as I know, ls forks & exec to the linux/unix shell and then gets the output (of the current file tree. eg./home/ankit/). I need a more detailed explanation, as I am not sure about what happens after calling fork. Could any one please explain the function...

Making GRUB automatically boot the kernel

I am currently writing a kernel, and in an attempt to actually run it, I've decided to use GRUB. Currently, we have a script to attach GRUB's stage1, stage2, a pad file, and the actual kernel itself together which makes it bootable. The only problem is that when running it, you have to let GRUB know where the kernel is and how long it ...

Determine Process Info Programmatically in Darwin/OSX

I have a class with the following member functions: /// caller pid virtual pid_t Pid() const = 0; /// physical memory size in KB virtual uint64_t Size() const = 0; /// resident memory for this process virtual uint64_t Rss() const = 0; /// cpu used by this process virtual double PercentCpu() const = 0; /// memory used by this p...

Operating System compile time

This is just a general question - I was sitting and waiting for a bit of software to compile (we use Incredibuild here but can still take 10/15 mins) and it got me wondering, does anyone know how long it took to compile Windows XP or Vista? I did some googling but didn't really find any useful information ...

Is building a Linux From Scratch system good for learning about operating systems?

Or learning about C/C++, Linux development, or anything else? Or is it just something that might be fun or useful for some people to do? ...

Is it safe to assume that the path C:\WINDOWS\system32 always exists?

On OS from win 2000 or later (any language) can I assume that this path will always exists? For example I know that on win xp in some languages the "Program Files" directory have a different name. So is it true for the System32 folder? Thanks. Ohad. ...

Scenarios for Thread Ordering Service

Reading up the new Vista/Win2008 features, I wonder what is the point of the Thread Ordering Service. In other words, in which scenario the "classic" scheduler's "fair to all" policy is not sufficient, and a definite order of threads is preferrable? To clarify. What would be a concrete application that would benefit from it? Thanks fo...

[.NET] How do I disable a system device?

Is there any way to disable a system device from C#.NET. Basically emulating when you go to Device Manager and disable a device that way? I am assuming there is a WinAPI function that I can invoke, but I don't know which one it is? The reason I need to do this is that I need to disable and straight after enable the device again. I ne...

How do you write a basic operating system?

Hi, Let me know how I can create a basic operating system. What books do you recommend? ...

Best OS for java development?

What is the best OS for Java development? People from Sun are pushing the Solaris, yes Solaris have some extra features included in itself such as (dTrace, possibility for Performance tuning the JVM, etc.. ). Some friends of mine, had port their application on solaris, and they said to me that the performances was brilliant. I'm not happ...

IPC with Message Passing

Hi, I'm looking for suggestions on possible IPC mechanisms that I can implement in my self-made OS for an AVR32 board. My current choice is implementing the massage passing mechanism described in the books written by Tanenbaum. Is this a good choice? Are there easier way to implement IPC? Thanks ...

Barest Bare Boned Operating System Possible

What are some tiny open source operating systems? I'm looking for something several orders of magnitude smaller than Puppy Linux, Feather Linux, DSL, etc. I want to run a command-line text editor and compiler; anything else is extraneous. I'm looking for a system I can take apart and acquire a fairly good understanding of the whole thing...

How to discover what Linux distro is in use

Sometimes I need to access some servers running Linux (or maybe another Unix-like SO), but I don't know how to verify which distro is in use on the server (there are times that even the "responsible" for the server doesn't know). Is there a easy and reliable way to discover that, one that is uniform and consistent across all of them? ...

Can one setup dev/random when using a VM(virtual machine)?

Does anyone know if it's possible to setup dev/random when running the OS within a VM (VMWare in this case)? ...

Kernel Memory Management - Page Handling Design

I'm working on kernel design, and I've got some questions concerning paging. The basic idea that I have so far is this: Each program gets its own (or so it thinks) 4G of memory, minus a section somewhere that I reserve for kernel functions that the program can call. So, the OS needs to figure out some way to load the pages in memory tha...

How good is FreeBSD as a development platform?

I know that lots of web hosting providers are offering FreeBSD, but how good is FreeBSD as a development platform? Specifically, is Java 1.6 available in it? Is there somthing specific that it offers with regard to tools that is not available under Linux? ...

Has anyone tried their software with ReactOS yet?

The Free MS Windows replacement operating system ReactOS has just released a new version. They have a large and active development team. Have you tried your software with it yet? if so what is your recommendation? Is it time to start investigating it as a serious Windows replacement? ...

I'm interested in creating an OS. Where should I start?

I'm a handheld programmer (pocket pc mostly) I've been coding in C++ for 10 years. I'd like to build a PPC OS for the OLPC's XO, and I would like know where to get started. Does anyone have a good book I could use? ...

How to uninstall a windows service and delete its files without rebooting

My current project involves deploying an upgraded .exe file that runs as a Windows Service. In order to overwrite the existing .exe with the new version, I currently need to: (1) stop the service (2) uninstall the service (3) reboot the system (so Windows releases it's hold on the file) (4) deploy the new .exe (5) reinstall the ser...

How do interrupts in multicore/multicpu machines work?

I recently started diving into low level OS programming. I am (very slowly) currently working through two older books, XINU and Build Your Own 32 Bit OS, as well as some resources suggested by the fine SO folks in my previous question, How to get started in operating system development. It could just be that I haven't encountered it in ...