operating-system

detect os language from c#

Is there a way to detect the Language of the OS from within a c# class? ...

Return from interrupts in x86

I have loaded an idt table with 256 entries, all pointing to similar handlers: for exceptions 8 and 10-14, push the exception number (these exceptions push an error code automatically) for the others, push a "dummy" error code and the exception number; then jump to a common handler So when the common handler enters, the stack is prop...

How many sub-directories should be put into a directory

At SO there has been much discussion about how many files in a directory are appropriate: on older filesystems stay below a fey thousand on newer stay below a few hundred thousand. Generally the suggestion is to create sub-directories for every few thousand files. So the next question is: what is the maximum number of sub directories I ...

How is the system call in Linux implemented?

When I invoke a system call in user mode,how did the call get processed in OS? Does it invoke some some executable binary or some standard library? If yes,what kind of thing it needs to complete the call? ...

Benefits of choosing Windows over Unix as development platform

Are there any technical benefits to Windows/Microsoft as a platform to use while developing, over a Unix dialect such as Linux or Solaris? I know that companies choose Microsoft at times because there's simply not enough programmers available that know Unix, or that these programmers are much more expensive to hire. So assuming all dev...

On which operationg system is threaded programming sufficient to utilize multiple cores?

I would like to use my multi-threading programming skills (I got skills), but I realize that that is not enough. My threads may still compete for the same core if the operating system is not aware of the potential. What OS/compiler/library combination can I use on Intel Xeon architecture to thread to the cores? ...

How to copy a directory and its contents to an existing location using Python?

I'm trying to copy a directory and all its contents to a path that already exists. The problem is, between the os module and the shutil module, there doesn't seem to be a way to do this. the shutil.copytree() function expects that the destination path not exist beforehand. The exact result I'm looking for is to copy an entire folder s...

Is Virtual Memory still relevant in today's world of inexpensive RAM?

Virtual memory was introduced to help run more programs with limited memory. But in todays environment of inexpensive RAM, is it still relevant? Since there will be no disk access if it is disabled and all the programs will be memory resident, will it not improve the performance and program response times? Is there any essential requi...

Why is the linux kernel not implemented in C++?

Why is C as programming language still so prominent when it comes to OS programming? Shouldn't C++ have replaced it a long time ago as its successor? ...

What alternative environments exist for building projects?

I was looking at the Linux From Scratch project awhile ago and was sort of disapointed that you needed an existing copy of Linux on your machine to build it. I know that Linux is very easy to obtain, install, etc. but I was hoping to build the LFS project outside of the modern operating systems (Unix/Linux/OS-X/Windows/Etc.) and in some...

Detecting Windows OSes on other partitions

Hello, What is the good way to check if the current computer is configured for dual/multi boot. If my active Windows OS is on D drive, I would like to check if there is any other Windows installed on other drives C:, E:, F: etc Basically I want paths to Program Files and Windows folders for each OS installed. Thanks. ...

In which situations is it advisable to opt for BSD systems instead of Linux?

For an everyday-user with new hardware Linux seems for me the natural choice if somebody is looking for an alternative to Windows. But when does it make sense to give the BSD variants a try? ...

Why is Windows giving my hard disk the letter C and not A or B for example ?

Is it because the operating system is written in the C programming language? I think that the A and B languages were not so successful? I am thirteen and trying to do computer programming in C#. ...

How do Real Time Operating Systems work?

I mean how and why are realtime OSes able to meet deadlines without ever missing them? Or is this just a myth (that they do not miss deadlines)? How are they different from any regular OS and what prevents a regular OS from being an RTOS? ...

Is it possible to run "native" code on top of a managed OS?

I was reading up on Midori and kinda started wondering if this is possible. On a managed OS, "managed code" is going to be native, and "native code" is going to be...alien? Is it possible, at least theoretically, to run the native code of today on a managed OS? ...

Recommended OS for Visual Studio 2008

Which Operating System would you recommend when working with Visual Studio 2008 and it's asp.net framework? I will only use it for Web-developing and Visual Studio is the only thing I need on it. I do all my programming on a 2Ghz laptop with 2GB memory. Should I stick with XP? Windows Server 2008/2005 or perhaps Vista? Should I use a 64...

Favorite server OS and source control system for small project.

I am starting a small project with one other developer and need to setup a dedicated system to house our version control and any other short-term needs the project may have. Requirements for the server are: Free/open source OS. Must provide source control. Must run all the time. That's it. So I know there are about a thousand Linux-b...

Ubuntu Linux, what programming languages should I learn?

I am a windows OS users for couple of years. I want to try Ubuntu Linux. I have couple of questions I would like to ask here: Is Linux a good OS for learning programming languages? What programming languages should I learn in Linux? Should I stick to Windows OS or change to Linux OS if I want to be a great programmer in future? Some ...

Choice of operating system with Web Development in mind

I consider myself fairly versatile when it comes to O/S selection. I have used DOS/Windows PC's all my life, switched my main laptop to Mac two years ago, and have used numerous flavors of Unix/Linux/BSD while studying for my Comp.Sci. degree. However, as I'm trying to improve my development environment, I'm starting to wonder if I'd be...

How to get the "friendly" OS Version Name?

Hi! I am looking for an elegant way to get the OS version like: "Windows XP Professional Service Pack 1" or "Windows Server 2008 Standard Edition" etc. Is there an elegant way of doing that? I am also interested in the processor architecture (like x86 or x64). cheers ...