multitasking Questions

6

Solved

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 conditio...
Luster asked 22/7, 2009 at 1:22

3

Solved

I have an app that has a list as its main activity and then you can click items which opens a detailed view of that item. I also have a search activity that is similar to the main activity...
Plank asked 10/7, 2010 at 15:12

3

I have a long running process that continuously reads from a telnet port and may occasionally write to it. Sometimes I want to send an HTTP request to it to fetch the info its read since the last t...

1

Solved

In iOS 7, a background fetch mode is supported for apps to fetch data when the app is not frontmost: When it is convenient to do so, the system launches or resumes the app in the background and ...
Detwiler asked 19/3, 2015 at 14:59

1

How do I fill an array with values from analogRead() on an Arduino? At a fixed interval of once per second, I want to read a value from analog input pin A0 via analogRead(A0), and store these value...
Guarantee asked 5/3, 2015 at 21:0

5

Solved

I have a problem when putting my iPhone app to background by pushing the exit button, and then relaunching by tapping the launch icon on the home screen: the app's view does return to its initial s...
Zaslow asked 29/10, 2011 at 9:20

1

I have added the Vitamio player in my android application. And it Works fine. Is there any method in Vitamio or any other player so that I can make the player floating over other apps and resizable...
Triennium asked 31/7, 2013 at 5:40

1

It seems to me that the system takes a different screen capture that the one my app takes on applicationWillResignActive. To my surprise there is a delay of about 0.6 secs between the image taken ...
Mureil asked 8/7, 2014 at 15:12

2

Solved

I have a big problem, I can't figure out why mutexes in C don't work as I expect. This is my code: #include <stdlib.h> #include <stdio.h> #include <pthread.h> pthread_t mythread...
Servo asked 15/4, 2012 at 11:2

2

I am using AFURLSessionManager, and set the manager as a singleton instance. - (AFURLSessionManager *)backgroundSession { static AFURLSessionManager *backgroundSession = nil; static dispatch_onc...
Goodish asked 5/12, 2013 at 2:45

2

Solved

I have something fairly simple I want to do. I attach a custom piece of data to some push notifications that I handle in -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptio...
Batavia asked 24/2, 2011 at 1:45

4

Solved

Recently when being interviewed, I got this question. Q: Have you written multithreaded applications? A: Yes Q: Care to explain more? A: I used Tasks (Task Parallel library) to carry out some t...

2

Solved

I want to make an activity that can be opened above ANY app. Normally, even when the activity is set as dialog, when you switch to my app, you see my app, and in the background you see the launche...
Ozell asked 22/4, 2012 at 9:55

3

Solved

As far as I know, when runtime comes across the statement below it wraps the rest of the function as a callback to the method which is invoked asynchronously (someCall() in this example). In this c...
Shaker asked 12/5, 2011 at 7:21

2

Is it bad practice to call registerForRemoteNotificationTypes in applicationDidBecomeActive? I was calling it in applicationDidFinishLoading, but with multitasking, the registration was not happeni...
Funchal asked 7/5, 2011 at 21:47

4

I'm trying to get around the concept of cooperative multitasking system and exactly how it works in a single threaded application. My understanding is that this is a "form of multitasking in which...
Battledore asked 19/1, 2013 at 14:21

1

Solved

when I was playing with tasks on C#, I was wondering what's the difference between using GetAwaiter().OnCompleted() and callbacks Case 1 : task1.GetAwaiter().OnCompleted() Task task1 = new Task((...
Miscellanea asked 25/12, 2013 at 12:14

2

I feel that UIApplicationBackgroundRefreshStatusDidChangeNotification introduced in iOS 7 is of little use without supporting UIApplication delegate method. Because, the app is not notified when us...

3

Solved

Yes, I know if I wish my app to be responsive to users' multitasking actions, such as switch to another app, I should deal with - (void)applicationWillResignActive:(UIApplication *)application - ...
Presbytery asked 11/7, 2011 at 13:22

2

Solved

My app has different behavior when becoming active from the lockscreen (locked while active), or becoming active from anything else. On iOS 6 and lower I could detect this UIApplicationState stat...
Extrasystole asked 18/10, 2013 at 14:53

1

Solved

I have an app that fetches content in the background with the help of Background Fetch. So if a Background Fetch should take place my application:performFetchWithCompletionHandler: method is calle...
Nikolaus asked 16/10, 2013 at 21:33

1

I'm trying to check the value of backgroundTimeRemaining, but I get a very large number. The value of the property is supposed to be the corresponding to 10 min aprox, and I`ve read in Apple docume...
Burden asked 2/3, 2013 at 11:57

1

is it possible to modify/access the Java call stack ? For instance saving and restoring ? I'm thinking about implementing cooperative multitaskting (especially I/O) just like gevent for python or h...
Potvaliant asked 31/7, 2013 at 16:28

1

Solved

I'm looking for some way to let my app play a sound at a specific time while it's in the background (IOS4 multitasking). Currently, I use local notifications for that which works quite well, except...
Fetlock asked 29/4, 2011 at 22:26

4

Solved

I wrote a Win32 application (in Delphi-7 which is 32-bit using TThread class) to create 100 threads. Each thread when resumed will continuously (in a loop) increment a 64 bit counter associated wit...
Trihydric asked 13/8, 2012 at 21:47

© 2022 - 2024 — McMap. All rights reserved.