operating-system

delete *.pyc continuation

As a follow-up to this question, I have a new question: What is happening internally in os.remove(module_name) and del sys.modules["module_name"]? I need an urgent help for this.Please help me out. ...

Best OS for bioinformatics?

What is the best choice of operating system for bioinformatics work? Are most of the tools for 64-bit Windows, for Linux/Unix in general, or OS X? ...

files on multiple processes

Hello, If one of my processes open a file, let's say for reading only, does the O.S guarantee that no other process will write on it as I'm reading, maybe leaving the reading process with first part of the old file version, and second part of the newer file version, making data integrity questionable? I am not talking about pipes which...

Creating a Hard Link in java

Currently I use 'ln' command via Runtime.exec(). It works fine. The only problem is that in order to do this fork, we need twice the heap space of the application. My app is a 64 bit app with heap size around 10Gigs and thus its runs out of swap space. I couldn't find any configuration that could fix this. I also want not to use JNI for...

Is there a python library which provides system information crossplatform?

I need a python system information library which a) is written in python (no C extensions, may use ctypes) b) is crossplatform (min. Linux, Windows, MacOSX - everything else is bonus) c) provides at least amount of physically installed RAM, number of CPUs, size of maximum usable shared memory) Is there such a library, or do I have to...

Programmatically get the cache line size?

Just want to document the answer to this specific question... a similar question (with potential answers was asked here) All platforms welcome, please specify the platform for your answer. ...

Simple inter-proccess communication in Qt4

I need to make so that my application can have only one instance running at a time. Also when it's launched with a command line parameter ( like when registered to open certain file types ) it should pass the parameter to an existing instance and quit immediately without displaying graphical interface. You all probably know what I mean. ...

How do I tell what a Linux process is waiting for?

I'm trying to track down the cause of performance bottlenecks in an application I'm debugging under Linux. The various processes involved seem to spend a lot of their time blocking on I/O requests, and I was wondering if anybody knew any Linux tricks that let you see why a particular process is blocked/what resource it's waiting for? Is ...

In Java5, how do I get the full name of the user running the application?

In Java5, is there a way to get the full name of the user that is running the application using only JDK APIs? (I know about JAAS and third-party libraries, but they might not be installed on the target system). I know about System.getProperty("user.name") but that returns the user ID not user NAME. ...

Can O.S tell me when a new file is created ?

Hello, I want to know when a new file is created on a specific directory, Instead of scanning the directory from time to time, I understand that there is a way to make the O.S tell my program that a new file was created. how does it work? Thanks Edit: as suggested below, this is similar to http://stackoverflow.com/questions/61253/how...

Hardened BSD from Scratch

I am aware of the Hardened Linux from Scratch project which is a project that provides you with step-by-step instructions for building your own customized and hardened Linux system entirely from source. I would like to know what is the equivalent in BSD? ...

Python/Ruby as mobile OS

I was wondering why smartphone/mobile device OSs are not written to allow dynamic languages as the language of choice? iPhone uses Objective-C, Google Android uses Java, Windows Mobile uses any manner of .NET language. What would be the reasoning behind a mobile OS being written in Python, Ruby, or any other dynamic language? I unders...

What is preemption / What is a preemtible kernel? What is it good for?

Explained in your own words, what is preemption and what does it mean to a (linux) kernel? What are advantages and disadvantages in having a preemptible kernel? ...

Power On Self Test

Hi, Any good place to learn about POST and how to design and code one? I am a C++ programmer and quite baffeled with the term. Thanks ...

Information on N-way set associative Cache stides

Several of the resources I've gone to on the internet have disagree on how set associative caching works. For example hardware secrets seem to believe it works like this: Then the main RAM memory is divided in the same number of blocks available in the memory cache. Keeping the 512 KB 4-way set associative example, the main...

Why does syscall need to switch into kernel mode?

I'm studying for my operating systems final and was wondering if someone could tell me why the OS needs to switch into kernel mode for syscalls? ...

How do we shift from protected mode to real mode in Linux 2.6?

How do we shift from protected mode to real mode in Linux 2.6? ...

Contigious Pages/Physical Memory in Java

My goal is to ensure that an array allocated in java is allocated across contiguous physical memory. The issue that I've run into is that the pages an array is allocated across tend not to be contiguous in physical memory, unless I allocate a really large array. My questions are: Why does a really large array ensure pages which are co...

Is this program running Asynchronous or synchrounous?

When I run this program OVERLAPPED o; int main() { .. CreateIoCompletionPort(....); for (int i = 0; i<10; i++) { WriteFile(..,&o); OVERLAPPED* po; GetQueuedCompletionStatus(..,&po); } } it seems that the WriteFile didn't return until the writing job is done. At the same time , GetQueuedC...

Terminology: What is the forcible removal of a resource assigned to a process called?

What is the forcible (non-voluntary) removal of a resource assigned to a process called? I can't seem to remember the name describing this. I've tried searching and haven't come up with the key term either. ...