-1
голосов
1ответов
108 просмотров

How do you start off with implementing a thread library?

How to write kernel code in C ? Where can we look forward to learn more of writing kernel code ? I want to know writing programs in C that can be used to modify my kernel. How do i do that ? What resources can i look upto ?

7
голосов
1ответов
5365 просмотров

what are ladder governors and menu governors?

What role do they play in the Operating system ?

13
голосов
5ответов
24625 просмотров

Replace strings in files by Python

How can you replace the match with the given replacement recursively in a given directory and its subdirectories? Pseudo-code import os import re from os.path import walk for root, dirs, files in os.walk("/home/noa/Desktop/codes"): for name in dirs: re.search("dbname=noa...

1
голосов
2ответов
127 просмотров

Thread/process safety for unmanaged resource

We may be accustomed to code below: if(File.Exists(xxx)) { //I am here using(var streamReader = new StreamReader("xxx")) { ... } } Well, the potential problem is that, the file xxx may be deleted by another thread (or process) when the code reaches "//I am here". Thus, the using bl...

0
голосов
1ответов
344 просмотров

UiTextView doesn't display text on iphone os 2.0

My text view shows the text when i am using iphone OS 3.0- but for some reason it will not show the text on OS 2.0. I can get the inputed text on OS 2.0 and even save it to file, and then restore the text but still- the text is not visible on OS 2.0. I have tried changing the scrolling properties...

2
голосов
4ответов
3097 просмотров

Best operating system abstraction?

I'm looking for something to abstract the standard operating system functionality in C/C++: span/kill a thread, send/receive a message, start/stop a timer, maybe even memory management, although I can probably handle that myself with my own buffer pool. I want to to be able to develop and unit t...

6
голосов
5ответов
3445 просмотров

Is it possible for a MATLAB script to behave differently depending on the OS it is being executed on?

I run MATLAB on both Linux and Windows XP. My files are synced among all of the computers I use, but because of the differences in directory structure between Linux and Windows I have to have separate import and export lines for the different operating systems. At the moment I just comment out th...

3
голосов
2ответов
240 просмотров

Is automatic "smart" process priority management worth it?

I am working on a very large application that has multiple processes running simultaneously; at any given moment there are none or there is exactly one process interacting with the user. Would it be a good idea to temporarily increase the priority of the process with which the user is currently i...

1
голосов
2ответов
816 просмотров

Custom Prefetch

Any programmatic techniques, portable or specific to NT and Linux that get the result of number of large files loading faster? I am after a 'ahead of time', a prior, whatever you prefer to call it mechanisms that I can control in code for two OS in a question. Each file has to be processed in f...

6
голосов
7ответов
3994 просмотров

How does the jump instruction in assembly work with multiple processes?

So, I am confused about how jump instructions work in an operating system. I thought that the jump instruction set the value in the processor's program counter. But programs can be run in various locations in memory. I see that in x86, there's the JMP EAX instruction, but my C++ code doesn't seem...

8
голосов
3ответов
2266 просмотров

Windows OS Architecture Book

I have a background in programming and have done a little .NET but I feel that I would benefit from improving my understanding of the Windows Architecture. Can anyone recomend a good book that discusses the Windows Operating System from a technical perspactive, particulary it's architecture/desig...

10
голосов
6ответов
5359 просмотров

Writing an OS for Motorola 68K processor. Can I emulate it? And can I test-drive OS development?

Next term, I'll need to write a basic operating system for Motorola 68K processor as part of a course lab material. Is there a Linux emulator of a basic hardware setup with that processor? So my partners and I can debug quicker on our computers instead of physically restarting the board and stu...

11
голосов
5ответов
6848 просмотров

How to load a kernel from disk with BIOS int 13h in NASM assembly?

I've been stuck with this for weeks now and have no idea where I'm going wrong because NASM hasn't given me any errors. The code is pretty self explanatory because of the comments. this is the code that is loaded from the BIOS ;-------------------------------------------- ; 'boot.asm' ; load...

0
голосов
1ответов
82 просмотров

Supervisor / Administrator Mode

What are the assembly commands that can be executed only with administrator or supervisor authorization? (kernel 00)

1
голосов
2ответов
1630 просмотров

Absolute keyboard input position (blinking cursor)

Is it possible to make Java program that will determine the absolute position (x,y on screen) of blinking keyboard cursor? That cursor can be in any text editor.

7
голосов
9ответов
10576 просмотров

What does 128-bit OS mean to a software developer?

Microsoft is planning to make Windows 8 an 128-bit operating system. I have always used 32-bit machines. I know 64-bit are common as well but I never went into details to understand how does it help a developer or in general. So my question is - What does 128-bit OS mean to a software develope...

-1
голосов
3ответов
381 просмотров

Is the Apple Mac OS X Free?

I am quite new here with Max OS X development. Is the OS X free to download? Cause I am thinking to use this OS X and install into VMWare machine. I assume this ok right? I am appreciated your feedback. Thanks

8
голосов
10ответов
1413 просмотров

Developing a non-x86 Operating system

I have to choose a thesis topic soon and I was considering implementing an operating system for an architecture that is not x86 (I'm leaning towards ARM or AVR). The reason I am avoiding x86 is because I would like to gain some experience with embedded platforms and I (possibly incorrectly) belie...

28
голосов
6ответов
19870 просмотров

Programmatically get parent pid of another process?

I tried google, but found getppid() which gets the parent pid of the current process. I need something like getppid(some_other_pid), is there such a thing? Basically takes the pid of some process and returns the parent process' pid.

3
голосов
2ответов
2250 просмотров

Interrupt Handling on SMP Systems

Are Interrupts assigned to a fixed CPU (always handled by the same CPU)? To put my question in context: From: http://msdn.microsoft.com/en-us/library/ms795060.aspx The spin lock that protects the shared area has an IRQL equal to the DIRQL at which the device interrupts. As long as the critical...

2
голосов
1ответов
796 просмотров

Generic printing using a USB port

I am developing on a device that has no printer support natively. I need to print to any printer using a USB port. Is this feasible? Is there any generic standard for all printers to print via USB? The device runs on Linux/PowerPC.

23
голосов
14ответов
21689 просмотров

How does binary translate to hardware?

I understand how the code is compiled to assembly, and that assembly is a 1:1 replacement with binary codes. Can somebody help me understand how binary is connected to the hardware? How is the binary physically read and run? How does an if statement work in the hardware? From google searches I'm...

0
голосов
3ответов
501 просмотров

How to restrict proccess to create new processes?

How to restrict proccess to create new processes?

2
голосов
5ответов
320 просмотров

How to launch process with limited memory?

How does one create and launch process (i.e. launch an .exe file) with RAM limitation using c++ and the win32 API? Which error code will be returned, if the proccess goes beyond the limit?

1
голосов
1ответов
1874 просмотров

NTP Y2038 & Y2036

I am currently investigating the implications of the year 2036 and 2038 rollover bugs for a particular project. The software implemented by this project must be capable of running beyond these two dates. My initial research shows that the NTP timestamp rollover in 2036 is actually non-issues as...

156
голосов
5ответов
86215 просмотров

How to get the PATH environment-variable separator in Python?

When multiple directories need to be concatenated, as in an executable search path, there is an os-dependent separator character. For Windows it's ';', for Linux it's ':'. Is there a way in Python to get which character to split on? In the discussions to this question How do I find out my pyth...

2
голосов
4ответов
1326 просмотров

Why code segment is Common for different instances of same program

I wanted to know Why code segment is common for different instances of same program. For Eg: Consider program P1.exe running, if another copy of P1.exe is running, code segment will be common for both running instances. Why is it so ?. Answer will be highly appreciated. Thanks in advance.

1
голосов
2ответов
559 просмотров

Platform Independent Way of Detecting the Number of Processors in Java

Is there a platform independent way to detect the number of physical and/or virtual processors in Java? One potential solution is to detect the operating system and use the Windows environment variable "NUMBER_OF_PROCESSORS". Do Linux and Mac OS X have a similar offering? This however may not be ...

51
голосов
9ответов
72511 просмотров

How to get the OS on which PHP is running?

For building a unix/dos specific script I need to know on which kind of operating system I am. How do i get this information? phpinfo(); tells me a lot more and not very clear whether I'm running on unix or not.

0
голосов
1ответов
11055 просмотров

when do we prefer Round robin over FCFS and vice-versa?

i know this depends on the design, but i was asked this question and no assumptions taken.. what should i answer and