operating-system

Getting hardware information using java/jna to work on all operating systems

Hi I am trying to write a java applet that will get some hard ware info, mac address(which I have done), cpuid motherboard serial number and hard drive serial number. I know I need to use jna to do this. My question is, is there a way in c/c++ to get that information that is not platform dependent? Everything i have seen would work only ...

Operating System

What is firmware rebooting? ...

If hyperion releases amiga to another platform, TODAY, would it survive?

If hyperion releases amiga to another platform, TODAY, would it do well enough? I'd love to develop for the amiga platform. I do miss it. What do we need? btw, i realize that this isn't a problem, more of a wishlist for the future of amiga. ...

Who picks the default file system for Android? HW manufacturers, or what?

Just interested on a purely theoretical basis. I've no current issues with YAFFS, but then I have no current Android. Is there some sort of hierarchy between EXT3 (which I would assume as the base) and JFS and ZFS (which might be encumbered by patents) and the dreaded EXT4? ...

What type of process control block for RTOS?

Hey guys Im designing an RTOS which uses a priority based preemptive scheduler. What would the PCB contain? Ive only been able to come up with these items 1)PID 2)Priority 3)Program counter 4)Status registers 5)Some flags Should I also include a deadline?Or any other fields ...

Get users OS and version number.

I've spent a day on and off Googeling for this; no luck so far. How can I get the users OS and version. Mine would me Mac OS X 10.6.4, the spare PC in the office would be Windows XP SP3. You see what I'm getting at. I've seen a million and one methods to get the users platform alone, just not the version. JS would be ideal, but a serv...

When to use Interrupt Gate or Trap Gate?

As the Intel Manual illustrated, both Interrupt Gate and Trap Gate can be used to access a handler routine. And some exceptions even share vector numbers with interrupts. I am wondering when such a shared vector is detected by the CPU, how could CPU know whether it stands for an exception or an interrupt? I am kind of confused about th...

how to find MAC address in MAC OS X programmatically ?

Hello, I am new to Mac OS X and X code and want to know how to find the MAC address of a machine programmatically in OS X. ...

Receiving from message queues

I have successfully created the message queue by using the following command: msgIdHareTurtle = msgget(keyHareTurtle, 0644 | IPC_CREAT | O_NONBLOCK); Now I want to send the queue to some other process I used, msgsnd(msgIdHareTurtle, (struct msgbuf *)&bufHareTurtle, sizeof(int), IPC_NOWAIT); and I try to receive it in different...

How close are Mac OS X and BSD related?

I read that Mac OS X and bsd are related. How close are they related. Can Mac OS X software be tweaked and installed on BSD? ...

How to determine the OS

how to implement a function that will return the OS name? detect the environment where the program running on? win2000/xp/vista/win7 etc...? ...

how to find OS of Mobile generally?

hi, I could not find out OS of Lot of mobiles? for example MicroMax , Videocon Mobiles in India, they did not give that details in their specification, what os will it have? why they did not give that details? but JVMs are there...any help please? ...

How to test a small kernel in a VM?

Say I developed a small kernel and I wanted to try it out in a VM. If I have the kernel image, how would I get it into a VM in VirtualBox, for example? More importantly, how do I get a bootloader like Grub installed into the VM? ...

OS X System Congiuration Settings, Set in Objective C

What would be the best method for configuring OS X Network Proxy preferences in Objective C? If anyone has any code examples that would be very helpful. Also - I have been searching all around the interwebs and can't seem to find a good source for setting OS X System preferences/settings with Objective C. Anyone have any good source...

In C, how is the main() method initially called?

The title says it all. How does a C program get started? ...

Memory alignment

Hi, I have understood why memory should be aligned to 4 byte and 8 byte based on data width of the bus. But following statement confuses me "IoDrive requires that all I/O performed on a device using O_DIRECT must be 512-byte alligned and a multiple of 512 bytes in size." What is the need for aligning address to 512 bytes. ...

Regarding Process modifications and address spaces

When we type vi at the prompt in a Unix Shell, we are able to use the Vim Editor. Now the Shell forks another process. AFAIk i read in a book that one Process cannot Modify the other. Then how come in Linux the Shell allows us to open Vim in the terminal itself? I am confused about the fact that if the shell is actually accessing the ...

How can I get the information inside a Windows PE file that is displayed in the Version Tab?

I decoded the optional header and didn't really know where to go from there. It has an internal name, a version, the company name, lots of info. Where do I go to find it? ...

Detect windows 2008 server and windows 2003 server in C#

Hello, Can someone help me modify this code to support Windows 2003 and Windows 2008 server? Thanks public static string getOSLegacy() { //Get Operating system information. OperatingSystem os = Environment.OSVersion; //Get version information about the os. Version vs = os.Version; ...

how can a process execute network code

Hello guys, I am a beginner to networking and I have a few questions regarding networking. 1)How can a process execute code that is sent from a different computer on the network. Generally a process's code segment cannot be changed once its loaded to ensure protection. (Also I can execute some arbitrary code to corrupt the process's mem...