operating-system

What is Working Set ?

I'm confused with the concept of Working Set ,while reading the Memory Management code of the Windows Research Kernel. ...

System() calls in C++ and their roles in programming

I've often heard that using system("PAUSE") is bad practice and to use std::cin.get() instead. Now my understanding of system calls is that they take a string which they enter into a system command line and talk with the OS, so PAUSE is a DOS command that pauses the output in the command window. I assume this works similarly with Mac and...

Adding stackless threading to BSD Kernel?

IronPort developed a stackless threading model that allows the IronPort appliance to support more than 10,000 simultaneous connections in contrast to the 100 connections supported on a traditional OS. If one wanted to do the same but to make it open source, where should they start? ...

Incorporating I/O driven scheduling into OS Kernel

IronPort developed a high performance file system and an I/O driven scheduler optimized for the asynchronous nature of messaging (hence "Async"OS). If you wanted to do the same but make it open source, what exactly would need to change? ...

books that guide you to knowing the underlying system better

I'm an undergraduate on CS for one year,have learned some programming languages, C, python, etc. I know a bit of TCP/IP protocol stack, and have been using linux for half a year. What disappoints me is that after these studies,I still have little idea about how the computer system really works? I think that OS and computer architecture ...

Average instruction time

Lets say we have an average of one page fault every 20,000,000 instructions, a normal instruction takes 2 nanoseconds, and a page fault causes the instruction to take an additional 10 milliseconds. What is the average instruction time, taking page faults into account? ...

What do I lose developing .NET on Vista Home Premium

I have recently purchased a laptop to do some offsite development, as well some of my own work during commuting. I am used to developing on XP, but the laptop was bundled with a version of Vista Home Premium (I had no say in this unfortunately). I tried to install XP on it, but it failed as the XP install doesn't come with SATA drivers....

Different File Formats are stored differently

This might be a really trivial one. Is File storage OS dependant ? Why do text Files change when moved from Dos to Unix, is it that the Editor in Unix interpret certain characters differently or does the File itself change when moved from Dos to Unix and hence the utility Dos to Unix. Why a Java Class File can be moved from Dos to Un...

What happens during Stand-By and Hibernation?

It just hit me the other day. What actually happens when I tell the computer to go into Stand-By or to Hibernate? More spesifically, what implications, if any, does it have on code that is running? For example if an application is compressing some files, encoding video files, checking email, running a database query, generating reports ...

How can I identify my build platform properly?

I want to know a parameter which is an indicator of the current OS. If am supporting Windows and Linux, how can I get a system parameter which differentiates the OS types. This for an OS independent makefile which runs both in Windows and Linux by checking the parameter in an 'if'. ...

How would you build a database filesystem (DBFS)?

A database file system is a file system that is a database instead of a hierarchy. Not too complex an idea initially but I thought I'd ask if anyone has thought about how they might do something like this? What are the issues that a simple plan is likely to miss? My first guess at an implementation would be something like a filesystem...

Change OS info, Change resolution Info, IE Webbrowser Control .NET C#

Hi, I recently created an auto browser windows form app that browsers various places just for fun at this point. But I noticed when going to tracemyip.org that information related to my operation system and resolution are available to them. Is there any way to change only the appearance of my resolution and OS when browsing to these type...

Implementing Semaphores, locks and condition variables

I wanted to know how to go about implementing semaphores, locks and condition variables in C/C++. I am learning OS concepts but want to get around implementing the concepts in C. Any tutorials? ...

What are the effects of not detaching a Shared Memory Segment

Hello. What are the effects of not detaching a Shared Memory Segment? How different operating systems handle this? Can not detaching compromise the stability of the O.S? Thanks. ...

Exicution of a OS command from a Python daemon

I've got a daemon.py with a callback. How should I make the handler function execute a OS command? ...

Efficient way of creating recursive paths Python

Hi I need a simple function to create a path in Python where the parent may or may not exist. From python documentation os.makedirs will fail if one of the parents exists. I have written the below method as which works by makes as many sub directories as necessary. Does this look efficient? def create_path(path): import os.path...

GlassFish on Windows vs RedHat

Wondering if it matters (reliability wise) choosing Redhat or Windows 2003 Server? Assume equal skills in both. Thanks ...

trapping http/https requests in windows

Is it possible to trap http/https requests for filtering in windows? ...

How to run regasm.exe from command line other than Visual Studio command prompt?

Hi I want to run regasm.exe from cmd. which is avalable in c:\windows\Microsoft.net\framework\2.057 I do like this c:\ regasm.exe It gives regasm is not recognized as internal or external command. So I understood that I need to set the path for regasm.exe in environment variable. For which variable do I need to set the path to run r...

What is the problem with DLLs and the Registry?

Hi all, I was watching the WWDC 2009 Keynote and something someone said about Windows 7/Vista got me curious.. The speaker claimed that 7 was still a poor operating system because it still used the same technologies such as DLLs and the registry. How accurate are his claims and how different is OS X doing it? Even os x has dynamically...