In multitasking systems, some abnormal conditions prevent progress of executing processes or threads. I'll refer to both processes and threads simply as "processes". Two of these conditions are called dead-lock and live-lock.
The former refers to processes which are blocking each other, thus preventing either from executing. The latter ...
I'm writing a job-scheduling app in Ruby for my work (primarily to move files using various protocol at a given frequency)
My main loop looks like this :
while true do
# some code to launch the proper job
sleep CONFIG["interval"]
end
It's working like a charm, but I'm not really sure if it is safe enough as the application might ...
What is the use of relocatable executable and how is it generated and how it is used ?
what do we mean by processes memory map remapping ?
if some can explain me w.r.to embedded systems , it will be great
thanks in advance
-Das
...
I want to know this more in detail. Is it a realtime scheduler? An interactive scheduler? How exactly does the process scheduler in iPhone OS work? Did Apple publish some technical notes or document that describes these things in deep detail?
I want to know every detail about it. What strategy is it following? First-Come First-Served? S...
I am displaying search results from a webservice.
What I do is OnCreate I hit the webservice display records, as android supports multitasking. If user opens another screen and after some time comes back to the search results page, the application starts acting crazy....
OnCreate method I load data some thing like :
private void loadD...
I want to make my iphone run application in the background.I know there is a program called "backgrounder",but it isn't I want.What should I do?
...
Ever since I started coding back in 2008 I was addicted to it and I still am today. Typically not a day goes by that I don't touch some code. What the hell is my point... I'll get to it soon I promise. I have been writing PHP for roughly a year, I absolutely love it and HTML for 2, and I can't get enough of them. However, I want to broad...
We use employees' desktops for CPU-intensive simulation during the night. Desktops run Windows - usually Windows XP. Employees don't log off, they just lock the desktops, switch off their monitors and go.
Every employee has a configuration file which he can edit to specify when he is most likely out of office. When that time comes a bac...
I had a task to write simple game simulating two players picking up 1-3 matches one after another until the pile is gone. I managed to do it for computer choosing random value of matches but now I'd like to go further and allow humans to play the game. Here's what I already have : http://paste.pocoo.org/show/200660/
Class Player is a co...
I had a task to write simple game simulating two players picking up 1-3 matches one after another until the pile is gone. I managed to do it for computer choosing random value of matches but now I'd like to go further and allow humans to play the game. Here's what I already have : http://paste.pocoo.org/show/201761/
Class Player is a co...
What up fam. So this isn't a question asking about memory management schemes; for those of you who may not know, the Flash Virtual Machine relies on garbage collection by using reference counting and mark and sweep (for good coverage of these topics, check out Grant Skinner's article and presentation). And yes, Flash also provides the ...
Is it possible to access to the touchesBegan event while application is running in background in iPhoneOS 4.0 ?
Thanks in advance.
...
I'm working on a small project for the iPad and I simply want to run a script that will halt after certain function calls and then let me resume the script from the same place later on. In fact I only do 'threads' one at a time in a queue so it's really only multitasking between the iPhone OS and Lua.
static int yield__ (lua_State *L) {...
I just watched this video from Apple that shows multi-tasking on the new iPhone (running iOS 4.0). What are the implications of multi-tasking to developers? Include both positives and negatives.
For example what happens if the user decides to launch two resource-intensives apps at the same time, one of the apps crashes and progress in...
In the iPhone OS4 SDK, does anyone have a suggestion for how I would implement a repeating local notification that ends on a particular date?
Looking at the API documentation, there doesn't appear to be a built-in property of UILocalNotification to allow you to set an end date on a repeat.
Any suggestions would be much appreciated.
Th...
Does the RTOS play a major role or processor play a major role in determining the time for context switch ? What is the percentage of share between these two major players in determining the context switch time .
Can anyone tell with respect to uC/OS-II RTOS ?
...
I find that in uC/OS-II RTOS, there is an idle task that gets executed when no other task is ready to run. If an idle task can consume resources, how can we reduce it ?
...
I have finished my earlier multithreaded program that uses perl threads and it works on my system. The problem is that on some systems that it needs to run on, thread support is not compiled into perl and I cannot install additional packages. I therefore need to use something other than threads, and I am moving my code to using fork(). T...
I have an audio app using AVAudioPlayer build for iPhone 3.x, now I would like to harness the multi-tasking capability in iOS 4 such that it can play music at the background. I tried to search for sample code but no luck. Can anyone help showing me how to enable AVAudioPlayer for background playing in iOS 4?
thanks.
...
I'm having difficulties starting the AudioQueue when my app is in the background with iOS4.0
The code works fine when the app is active, but fails with -12985 code when running in the background.
err = AudioQueueStart( queueObject, NULL );
if( err )
{
NSLog(@"AudioQueueStart failed with %d", err);
...