operating-system

In java what are the packages containing operating system level commands ?

I want to to detect whether a given program can perform malicious operations like forking , interprocess piping , input/output redirection, file handling etc. Actually I am developing a program that checks java codes and do not want the coder to harm my code checker system in any way. What are the packages I should look for in code to en...

How do drivers become a part of the kernel?

Someone told me that for most operating systems, the drivers become a part of the kernel. How does this happen? Does the kernel decompile itself, add the driver, and recompile itself? Or are the drivers plug ins for the kernel? Are drivers even their own separate programs? ...

Which iPhone SDK to use for compatibility

Hello, i'm writing my first iPhone app with aim to upload it to the AppStore and don't understand one thing: Most popular games on the AppStore have compatibility with iPhone OS 3.0 or later. I have currently installed iPhone SDK 4.0 i believe. I want my app to have the same compatibility starting from 3.0, do i have to install and use...

programmatically executing and terminating a long-running batch process in python

Hi guys, I have been searching for a way to start and terminate a long-running "batch jobs" in python. Right now I'm using "os.system()" to launch a long-running batch job inside each child process. As you might have guessed, "os.system()" spawns a new process inside that child process (grandchild process?), so I cannot kill the batch ...

pyqt4: Open website in standard browser on button click.

I would like to open website in standard browser of operating system when user clicks a button in my pyqt4 application. How can I do this? ...

I can't delete a folder that I just extracted from a zip file in python

So here's my problem. I have a python script that takes a zipfile and extracts its contents. Then based on some constraint, I will try to delete the folder whose contents were just extracted. For some reason I get an error, WindowsError: [Error 5] Access is denied: 'Foldername' when i try to delete that folder. The simple code looks like...

Can you point me to recent developments in operating systems?

It has been a full 19 years since I studied operating systems and need am looking for a list of recent developments. So any thing since Virtual Memory, paging, all of the good stuff. I would prefer a book so I can get everything in one place. I'll pick up 'Understanding the Linux Kernel' from O'reilly to get started. ...

What happens to dynamic allocated memory when calling execv()?

I'm writing a simple shell as an OS course assignment, I need to search in the PATH to find the program user typed in, once I find the right directory, I malloc a piece of memory just enough to hold the directory name plus the program name, and I pass it as the first argument to execv(). I could have statically allocated 100 characters ...

Why 16-bit address with 12-bit offset results in 4KB page size?

Hi guys, I'm reading the "Modern Operating System" book. And I'm confused about the "Page Size". In the book, the author says, The incoming 16-bit virtual address is split into a 4-bit page number and 12-bit offset. With 4 bits for the page number, we can have 16 pages, and with 12 bits for the offset, we can address all ...

For business, which OS is more secure: Windows 7 or OSX 10.6?

I've seen the outcomes of certain hacking competitions yield varied results and the argument over which OS is currently more secure has never seemed to go beyond an anecdotal level. I currently split my development (PHP, MySQL web applications which handle sensitive transcript information, among others) 50% between OSX Snow Leopard and ...

new job choice of mac book pro or thinkpad 500

I'm going to work as java developer backend web developer at my new company. They have very generously given me the option of a mac book pro or a wintel machine. I'm a windows / ubuntu guy and havent really played with Mac OS at before. I'm kinda curious what you guys might recomend ? Obv there will be a slight learning curve with the M...

PowerShell UIAutomation script not returning expected result

[I have posted this question earlier in the PowerShell Technet forum, but without a response] I am attempting to change Windows XP Quick Launch settings (enable / disable it using PowerShell). Existing VBScript solutions rely either on Registry or SendKeys, so I thought that this would be feasible in PowerShell through UIAutomation. My ...

Android: BroadcastReceiver to restart killed/crashed app

I have an application and I would like to be able to restart it on the event of an error or a crash/app shutdown. I am familiar with how to register BroadcastReceivers, use alarms, etc. Is there any signal I could intercept that the app sends out when it shuts down? Or that the OS sends out when any app shuts down? ...

Does HTML rendering differ amongst different versions of windows ?

Does HTML rendering differ amongst different versions of windows ? For example does firefox 3.5 render HTML on xp the same as windows 7 ? ...

How do you know what OS to use in hosting Coldfusion Apps?

What factors play part in determining the OS to host? Or is it a matter of preference? Would factors like using SQL be a hindrance when hosting in Linux? Are there any real advantages of one over the other? E.g Performance, Scalability, Security Thanks ...

Where and how is the MESI cache coherence protocol implemented?

I know the MESI protocol is used to implement cache coherence in multiprocessor systems. But I don't know how its implemented. Any help on this is very much appreciated. ...

Best operating system for School

A Charitable organization is funding the development of infrastructure in a rural school. I have volunteered for setting-up a computer-education lab using which other volunteers (including me) will be teaching school children of various standards and also village adults. I've ordered many net-tops already, but I'm confused about the OS....

Would it be possible to replace CMD with something else?

I never studied OSes, so forgive me if this sounds basic or silly, but I'm curious about if one could replace the cmd prompt in Windows. I am NOT asking for programs that actually do this, as I've looked around and not really seen any. What I'm asking is 1) if it's actually possible to write an entirely new program that would behave li...

Communication between Java thread and OS threads

As for as I know, Java threads can communicate using some thread APIs. But I want to know how the Java threads and the OS threads are communicting with each other. For example a Java thread needs to wait for some OS thread finishes its execution and returns some results to this Java thread and it process the same. ...

Where does windows Service status stored?

I could see from MSDN documentations that a new windows service will be stored in the registry HKLM\System\CurrentControlSet\Services However the services registry key does not hold a value for the "service running status" Can anyone let me know where the service running status will be stored? ...