operating-system

portable system/process information library

I need to retrieve process information in a C/C++ program. I need at least basic things like CPU% and memory usage, but additional details would be useful as well. The problem is that I need to use this information in a portable program, that will run on multiple platforms: windows, linux, MAC and possibly Solaris too. Is there a libra...

PostgreSQL OS suggestion

Hi guys we are on the way to start developing a big web platform. For db server we choosen postgresql. Would you suggest an OS for the postgresql server (we are looking for the maximum performance)? Thanks P.S. sorry for the bad english ...

What is the Best Windows Development OS

I am building a DEV image and am currently planning to use Windows XP Pro x64 as my O/S. Is there any reason to use a Server O/S as a development operating system or is XP the best choice right now? ...

How does copying and pasting non-breaking spaces compare in different systems/browsers?

Suppose you have an HTML document with non-breaking spaces ( ). In IE 6 - 8 running on Windows XP, when you select the non-breaking spaces and copy/paste them, they will be copied/pasted as "normal" spaces (U+0020). Does anyone know of any systems, browsers, etc., or combinations of, that will not exhibit this behavior. That is, th...

user thread and kernel thread

is there a relationship between kernel/user thread? some OS textbook said that "maps one(many) user thread to one(many) kernel thread",what does map means here? ...

How to differentiate between Vista SP1 and Server 2008 at install

I have a Wix installer which should be allowed to run on Windows Server 2008 but not on Vista. According to Microsoft's Operating System Properties page, this is not possible using the parameters they provide for this purpose (VersionNT and WindowsBuild). Has anyone solved this problem or know how to solve it? Thanks! ...

How to get a fully qualified path to MS Explorer in .NET?

How to get a fully qualified path to MS Explorer in .NET? The path will be used to launch a new instance of MS Explorer with some command line parameters. ...

Memory Segmentation on modern OSes: why do you need 4 segments?

From wikipedia: "Segmentation cannot be turned off on x86 processors, so many operating systems use a flat memory model to make segmentation unnoticeable to programs. For instance, the Linux kernel sets up only 4 segments" I mean since protection is already taken care of by the virtual memory subsystem (PTEs have a protec...

How can I build a small operating system on an old desktop computer?

This might be in vain, as I know writing an operating system is unbearably complicated (especially by oneself). I don't expect to build the next linux, or windows. I know it will be horrible, and buggy, and won't work, but that's fine. I want to write everything myself, in assembly, C, and (some) C++. This is a future project, as I'm...

fork in multi-threaded program

I've heard that mixing forking and threading in a program could be very problematic, often resulting with mysterious behavior, especially when dealing with shared resources, such as locks, pipes, file descriptors. But I never fully understand what exactly the dangers are and when those could happen. It would be great if someone with expe...

PHP, MySQL | Windows vs Linux

Well the title does the explaination. Which one is faster PHP/MySQL on Linux or on Windows. Question 1 I know that MySQL is slower on Windows, because i tried to run a C++ program on Windows to access MySQL, it took a year every time it had to open a connection. When i ported the exact copy into the linux enviornment it was lightning f...

How to develop to take advantage of 64 bit systems?

Is there any specific sectors of Software Engineer/Computer Science where there's a marked difference when developing for 64 bit systems? I've been coding for around 10 years now, and since the break of 64 bit systems, my code hasn't changed one bit. What applications that a single coder can code as a side project require you to use 64...

What is INT 21h?

Inspired by this question http://stackoverflow.com/questions/1237489/how-can-i-force-gdb-to-disassemble I wondered about the INT 21h as a concept. Now, I have some very rusty knowledge of the internals, but not so many details. I remember that in C64 you had regular Interrupts and Non Maskable Interrupts, but my knowledge stops here. C...

How does scanf() work inside the OS?

I've been wondering how scanf()/printf() actually works in the hardware and OS levels. Where does the data flow and what exactly is the OS doing around these times? What calls does the OS make? And so on... ...

What's the relationship between assembly language and machine language?

Are assembly language and machine language (for the same underlying system) really the same? Are there any differences between these two concepts? ...

Should I use a 32-bit or 64-bit OS for a development machine?

I remember hearing that for performance a development machine should be 32 bit, while servers should be 64 bit. I think it was Richard Campell on Dot Net Rocks! that mentioned this. Why would 32-bit be faster than the 64-bit for a development box and vice versa for servers? ...

How do I properly split a PATH variable in PHP?

I want to split $path = getenv('PATH'); into its components. How do I determine the separator char in an os-dependent fashion? ...

How does the Mac Web Dash board app work?

Would like to understand how to build a tool like the mac os dash board widget (web clip). Am looking at trying to build it with webkit but not sure if thats the right way to go. Some thoughts were to using webkit and some DOM to display only the viewport that a user requests. While this works so well on mac os, am trying to build it...

what is a tickless OS?

I've heard the term "Tickless OS" thrown around. What does it mean? Which OSes are tickless? How does it differ from a non-tickless (tickful?) OS? ...

Stack size on BlackBerry?

I know that on Symbian stack size is equal to 8k. What about BlackBerry? ...