multitasking Questions

2

Solved

Multitasking seems to be a disaster at times when big projects crashes due to shared mutation of I would say shared resources are accessed by multiple threads. It becomes very difficult to de...

5

Solved

I have a method which does 2 independent pieces of logic. I was hoping I can run them both at the same time .. and only continue afterwards when both those child methods have completed. I was tryi...
Countersubject asked 24/5, 2013 at 5:41

1

Solved

How would you go on creating a long video from images? It takes pretty long and the user will get bored to wait for it, so i'm thinking to generate the movie in background and notify the user after...
Shig asked 23/4, 2013 at 7:25

4

Solved

I want to know how to call my function on the main thread. How do I make sure my function is called on the main thread? (this follows a previous question of mine).
Asthenia asked 20/7, 2012 at 15:20

2

Solved

Apple's documentation of "App States and Multitasking" (Section "What to Do When Moving to the Background") say for saving when the app goes to background: Save user data and app state informati...
Sirenasirenic asked 4/3, 2013 at 22:50

1

Solved

Is applicationDidEnterBackground ALWAYS called before applicationWillTerminate in an iOS app? I know that applicationWillTerminate is not always called (multitasking) - but when it is called, is ap...
Lop asked 5/12, 2012 at 16:28

1

Solved

I'm working on an Android project, in which I need to load some images to a GridView. The images could be in the cache, if cache missing, then query the Internet server. My design is to use two thr...
Soll asked 2/12, 2012 at 22:12

4

I'm spec-ing an iOS app (which will be built outside of our company) which will upload a user's data entry to a server. If the device is not connected to the Internet, we'd like to save data on the...
Depolarize asked 1/9, 2012 at 2:4

1

Solved

I'm working on a mobile web app (website) that requires you to add it to the home screen. When you open it, and switch to another app, then go back to my web app, the whole app reloads. It shows th...
Twentyfour asked 23/7, 2012 at 16:0

3

Solved

I recently started to learn how the CPU and the operating system works, and I am a bit confused about the operation of a single-CPU machine with an operating system that provides multitasking. Supp...

2

Solved

I have searched far and wide for documentation on how to record audio in the background and have come to the conclusion that specifying 'audio' in the plist file might work. But, because iOS 4 will...
Haemic asked 17/2, 2011 at 4:14

2

Solved

My app downloads several resources from server, data and data descriptors. These downloads, triggered by user actions, can be performed simultaneously, let's say, up to 50 downloads at a time. All ...
Ferriter asked 15/6, 2012 at 16:9

3

Hallo experts, I've tested what's happing with my app when the iPhone is switched off while the app is active. For this purpose I logged the callback methods of the app's lifecycle in the xcode de...
Thoria asked 8/11, 2010 at 17:10

1

As far as all books say, switching between tasks/processes is more expensive than switching between threads of the same process/task. If so, then scheduler of threads-aware OS should schedule...

2

Solved

I have a class with two methods, Load() and Process(). I want to be able to run these individually as background tasks, or in sequence. I like the ContinueWith() syntax, but I'm not able to get it ...
Racial asked 17/5, 2012 at 3:17

4

Solved

I wrote a wrote a program and it doesn't work as I expect it to. I have two threads: thread triggers func and anotherThread triggers anotherFunc. What I wanted to do is when cont reaches value 10 i...
Robbirobbia asked 16/4, 2012 at 18:27

4

Solved

I am looking into various OS designs in the hopes of writing a simple multitasking OS for the DCPU-16. However, everything I read about implementation of preemptive multitasking is centered around ...
Bale asked 9/4, 2012 at 4:20

2

I am playing music using AVAudioPlayer in background. The problem is: if there is a incoming calling interrupts the player, it will never resume unless switch to foreground and do it manually. The...
Apeak asked 30/12, 2011 at 5:31

3

Solved

I have an app that streams video from the net and plays it using an MPMoviePlayerController object for playback on the device or via AirPlay. The app supports background operation and has the 'aud...

5

Solved

We have a very high performance multitasking, near real-time C# application. This performance was achieved primarily by implementing cooperative multitasking in-house with a home grown scheduler. T...
Preeminent asked 31/12, 2011 at 2:5

6

Solved

I have a C# service application which interacts with a database. It was recently migrated from .NET 2.0 to .NET 4.0 so there are plenty of new tools we could use. I'm looking for pointers to progr...
Filings asked 3/2, 2012 at 16:44

3

Solved

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. ...
Ginglymus asked 25/6, 2010 at 22:26

4

Solved

I have tabbar-based application. When I put in my plist UIBackgroundModes (my application is supposed to support voip), the GUI doesn't load. It sucks on Splash screen and doesn't load the first ta...
Noman asked 3/11, 2010 at 9:36

2

Solved

I'm having a bit of a problem finding out how to cancel this task in C#. I don't exactly have a strong understanding of handling threads and I've tried Googling for some simple code examples to hel...
Picofarad asked 31/1, 2012 at 4:34

3

Solved

Today's CPUs typically comprise several physical cores. These might even be multi-threaded so that the Linux kernel sees quite a large number of cores and accordingly starts several times the Linux...
Litt asked 24/1, 2012 at 16:59

© 2022 - 2024 — McMap. All rights reserved.