operating-system

What platform will require only one code and work for all smartphones in the world?

3 years from now, what will be the platform that will work in all smartphones and tablets, including but not limited to iOS, Android, RIM, Symbian, WebOS? Will it be Android, or MeeGo? And why. ...

making ruby 1.9 default on os x

How do I make ruby 1.9 the default version to use instead of the 1.8.x that is by default installed on os x? Thanks. ...

How can virtual address space mapping be acceptable from a performance point of view?

This question is aimed at any OS using a VAS model, but I'm going to specify windows nt, since that's the system I know best. As we all know, by default, processes on 32 bit windows get 2 GB of memory all by itself. This memory can be located in system memory, a swap file, an usb drive etc. This means that several processes can have al...

Problem using mmap in windows

I am using mmap in windows for fast file I/O. Following is my code for your refrence. Windows specific code for mmaping. m_fHandle = CreateFile(m_sFileName,GENERIC_READ|GENERIC_WRITE, FILE_SHARE_WRITE,NULL,OPEN_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL); if (!m_fHandle) { //Log Message to signal failure error_exit("DPStr...

paper on event-based v.s. threaded programing

I am trying to tap into the stackoverflow community to aid my fogged memory. A while ago I have read a research paper regarding multithreading v.s. event-base programming paradigm. The thesis is to challenge the current belief that multithreading has a natural limit on the number of threads a system is able to support. It asserts such li...

STL on custom OS - std::list works, but std::vector doesn't

I'm just playing around with a grub-bootable C++ kernel in visual studio 2010. I've gotten to the point where I have new and delete written and things such as dynamically allocated arrays work. I can use STL lists, for example. I can even sort them, after I wrote a memcpy routine. The problem is when I use the std::vector type. Simp...

Conditional Variable vs Semaphore

When should one use a semaphore and when should one use a conditional variable (CondVar) ? ...

Thread related issues and debugging them

Hi, This is my follow up to the previous post on memory management issues. The following are the issues I know. 1)data races (atomicity violations and data corruption) 2)ordering problems 3)misusing of locks leading to dead locks 4)heisenbugs Any other issues with multi threading ? How to solve them ? ...

Problem setting base sdk to 4.0 and OS Deployment Target to 3.1.3 (Using MapKit)

Hi, I'm building an application that uses MapKit functionality. The base sdk is 4.0 but I'm building to a 3.1.3 device (the OS Deployment Target is set to 3.1.3). After the app is installed and right when it begins to run, I run into the following error: dyld: Symbol not found: _CLLocationCoordinate2DMake Data Formatters temporarily un...

Migrating assembly code from 32 to 64 bit question

I'm responsible for some application level code that I inherited that has some x86... Intel assembly code based on 32 bit instructions and addressing. I going to make the assumption this 32 bit assembly code will run when we migrate a 64 bit windows OS. Yes? ...

Iphone SDK 4.0 -->> simulator just sits there and doesn't load the ap

Hi I have started learning iphone apps development. However when I build and run the project, the simulator opens with new app icon. When I click on the new app icon ...nothing happens. -->> simulator just sits there and doesn't load the app Any help will be appreciated. Marty ...

How can/In what cases can a mutex be locked multiple times in the same thread?

I do not understand the use of a mutex if it can be recursively locked by a thread. Why would anyone want to recursively lock the mutex ? In what cases will they use this ? ...

how do i accept and verify text field entries without using database classes?

i want to create an app in obj C that starts by accepting and verifying a locally stored username and password. can anyone please help me out wid it? ...

Convert Objective-C code to C++ for detecting user idle time on OS X

Hi, I'm developing Qt/C++ application and I need simple function that retrive me User idle time in seconds on Mac OS X. I found this code for detection User idle time. #include <IOKit/IOKitLib.h> /** Returns the number of seconds the machine has been idle or -1 if an error occurs. The code is compatible with Tiger/10.4 and later (b...

In virtual memory, can two different processes have the same address?

This is an interview question I found in a website, the questions says: "In virtual memory, can two different processes have the same address? When you answer "No" which is correct, how one process can access another process' memory, for example the debugger can access the variables and change them while debugging?" What I understand is...

Different ways to ask Windows to write data to disk

Usually, when an application writes to one of it's files on disk, the file modified timestamp changes. Sometimes, and in my case it is an application written in ProvideX (a Business Basic derivative i believe) doing the writing, the modified timestamp does not change after a write. A program like MyTrigger will not pick up on the write...

the output of my fortran code is killed , any suggestion?

I'm trying to run a code on ssh that works perfect for a smaller mesh , but since the new mesh is much bigger i used ifort command to compile it, ifort -mcmodel=medium -i-dynamic -otest.out*.f and it complies but when i run it , the output is: killed i know that problem is from memory, does anyone know if there's any way to run it? how...

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 do unix-like OS implement IPC shared memory?

Hi, guys. I am wondering how do unix-like OS implement shared memory? What is difference between accessing a normal user-space memory between accessing a memory unix in sytem IPC shared memory? ...

All registered dll in the system in .net

Hello, Is it possible in .NET to get a list of all registered dll in Windows OS. Can anyone provide me with C# code. Thanks. ...