operating-system

Python + SVN + Windows/Mac = Invalid syntax?

I'm pretty sure the following error is related to the fact that I'm sharing code via SVN with a colleague that is using a Windows system. Myself, I use Python on Mac, editing with TextMate. #!/usr/bin/python import os from google.appengine.api import users from google.appengine.ext import webapp ... When running that code, I get a...

OSPM - power management in OS

How does one increase or decrease the frequency scaling factor , or turn off frequecy scaling ? how to turn ON or OFF cpuidle state ? how to switch between tickless and non-tickless ? how to make sense of the data obtained form commands like top , memstat, iostat, netstat etc how to turn ON/OFF power management option ? how to manipulat...

Question on critical section algorithm

The Operating System Concepts 6th edition present one trival algorithm to implementate ciritical section. do{ while (turn != i); critical section trun = j; remainder section } while(1); Note,Pi is the process with identifier i,Pj is the process with identifier j.To simlify the question,the book limit the i,j to 0 and 1,th...

Text book / online resource for learning to program at system/kernel level

Is there any book/resource that one can refer to, to be able to write programs at kernel/system level.. I'm looking for a programming book that could serve as a guide to write kernel codes / system level programming etc.. I have Tannenbaum's Design and Implementation. It addresses theoretical aspects well .But a book that teaches program...

Un-killable java program

I have developed an application in java. I need that my java program would not terminated any process explorer/task manager. ...

A trivial SYSENTER/SYSCALL question

If a Windows executable makes use of SYSENTER and is executed on a processor implementing AMD64 ISA, what happens? I am both new and newbie to this topic (OSes, hardware/software interaction) but from what I've read I have understood that SYSCALL is the AMD64 equivalent to Intel's SYSENTER. Hopefully this question makes sense. ...

Java Random Slowdowns on Mac OS

I have a Java program for doing a set of scientific calculations across multiple processors by breaking it into pieces and running each piece in a different thread. The problem is trivially partitionable so there's no contention or communication between the threads. The only common data they access are some shared static caches that don...

What is the bss section of an image?

I am trying to understand PE file formats and there are many sections. What is the bss section? Is that fluid and data written to that section can be overwritten anytime? Is that a storage location in memory of the loaded binary? ...

Designing an OS abstraction layer

While Developing an OS Abstraction layer for a multi-modular system, which approach should one take: Create a Shared Library of OS services and each module is built to use it and runs as individual processes. OR Create only a single instance of abstraction layer which provides memory, timer services and which alone spawns all in...

Solid Foundation in programming for windows (Internals)

Hello, I started my windows development with .NET. But I'm a person who doesn't like getting away with work done. I would really like to know how exactly things work, I mean the INTERNALS. I'm doing my Engineering final year. Now and then I encountered few books, If put them in order I think it makes SOLID foundation. So, the list is:...

how to set UTF8 lang on Tomcat/java running on Mac OS 10.5.8?

I'm running Tomcat6 locally on Mac OS 10.5.8. Our staging and production servers have setup an environment variable of: LANG=en_US.UTF-8 Stage and production run on CentOS and read this value in when java and Tomcat starts up. However, it doesn't appear that java is reading this value and is defaulting to en_US_ISO_85591. On my local ...

What exactly changes when a software is to be upgraded from windows xp -> Vista -> Windows 7

Hello, I guess Win32 API MFC .NET Java (is also managed) are "the only" ways of making windows applications. Please mention if there are some other ways through which we can build win apps If its a managed enivronment .NET or Java. The application will run on all the Operating systems irrespective of its version. It only cares abou...

Benefits of JVM atop an OS VM?

I see many deployments where IT groups run effectively nothing but a JVM application stack inside a VM (vmware, &c) instance. I guess I consider the JVM to be a formal VM: what real benefit is it to run your Java application stack inside another VM? ...

What's the difference between operating system "swap" and "page"?

What is the difference between these 2 terms in Operating System: swap and page? ...

How to check which Operating System ?

How can I check OS version in a batch file or through a vbs in an Windows 2k/2k3 environment ? You know ... Something like ... : "If winver Win2k then ... or if winver Win2k3 then .... ...

General OS question about multithreaded process

Which of the following components of program state is shared across threads in a multithreaded process? Register values, Heap Memory, Global Variables and Stack memory. My suggestion; Only global variables, global variables are allocated on the heap? So Heap memory and Global Variables. Is this correct? ...

Set minimum iPhone OS version for app?

I'm about to publish an app on the app store, and I'm looking to set the minimum OS version as it appears in iTunes as "Requires iPhone OS 3.x or later". 2 questions: 1) Where do I set this in my Xcode project? 2) I'm aware of the UITableViewCell numberOfLines property that is present only in OS > 3.1. If I set my minimum as OS 3.0, wi...

What are some of the major pro/con of FreeBSD vs GNU Linux vs OpenSolaris?

What are some of the major pro/con of FreeBSD vs GNU Linux vs OpenSolaris? Which is the best operating system to program/develop against? ...

Preferred OS for hosting Tomcat servlet container.

I know that I'm taking a risk, pitting the differing OS religions against each other, but I would like professional opinions about hosting a servlet container. In my case the container is set, we will be using Tomcat. But what is in question is the hosting operating system. We have administrators experienced in Windows Server 2003. W...

how is sleep implemented at OS level?

I am just interested how sleep(time in ms) is implemented in C lib or basically at the os level.. I am guessing .. 1) may be the based on the processor speed you do a while loop of nop's ( not sure if the sleep time will be accurate).. 2) any special register in processor , where u write some value and the processor simply halts for sp...