multitasking Questions

4

Solved

I'm working on a trace module which has to monitor FreeRTOS tasks' heap in order to detect stack overflows. I am wondering whether it is possible to get a task stack size after its creation. Can I ...
Stinky asked 20/2, 2020 at 11:0

13

Solved

I have the UIApplicationDelegate protocol in my main AppDelegate.m class, with the applicationDidBecomeActive method defined. I want to call a method when the application returns from the backgro...
Hectograph asked 3/9, 2010 at 22:1

10

Solved

I keep getting this error when I try to submit my app to the store using Xcode: ERROR ITMS-90475: "Invalid Bundle. iPad Multitasking support requires launch storyboard in bundle 'com.companyname....
Proteus asked 14/9, 2015 at 5:24

16

Solved

In iOS 9, is it possible to detect when an app is running in iOS 9's Slide Over or Split View mode? I've tried reading through Apple's documentation on iOS 9 multitasking, but haven't had any luck...
Bernal asked 12/7, 2015 at 11:40

2

Solved

I'm trying to get my audio app to play in the background. So far I added "app plays audio" to the "required background modes" in info.plist and also the following code just before starting my sound...
Baronial asked 18/6, 2012 at 14:29

3

Solved

Iam using an iPhone app chat uses socket connection to communicate with the server. When the app is moved to background i can see that the server is able to communicate with the app for about 5 min...
Hyperemia asked 14/2, 2013 at 13:53

4

Is there any conventient way of determining if a view is being loaded from the app being in background mode? In 3.X I would rely on viewDidLoad to do some initalization etc., this however is not t...
Problem asked 4/9, 2010 at 18:51

2

Solved

My team is developing a set of SDKs for barcode scanning, ID scanning and OCR. We use device's camera, specifically, AVCaptureSession, to obtain video frames on which we perform our processing. We...
Alisa asked 10/8, 2015 at 8:53

3

Solved

I am writing a toy programming language and would like to implement cooperative multi-tasking. The compiler and runtime are written in C. Instead of using threads, I would like to be able to switch...
Feininger asked 15/6, 2022 at 2:55

8

Solved

iOS 9 introduced slide over and split view for iPad. How do I simulate these features on an iPad simulator? I have tried swiping from right on iPad Air 2 simulator with no luck.
Emanuele asked 18/6, 2015 at 10:17

5

Solved

I'm trying to test start state of my application when it is "freshly" launched, and when it is launched from a multitasking state. On an iPad a user can double click on the Home button twice to bri...
Goforth asked 28/6, 2012 at 15:6

7

Solved

How many goroutines can I use painless? For example wikipedia says, in Erlang 20 million processes can be created without degrading performance. Update: I've just investigated in goroutines perfor...
Allysonalma asked 14/12, 2011 at 17:43

6

Solved

I'm trying to run two functions simultaneously in Python. I have tried the below code which uses multiprocessing but when I execute the code, the second function starts only after the first is done...
Xenocrates asked 18/9, 2013 at 5:57

2

Solved

I am porting an old application to .NET core. I need a reader writer lock (many read operations, occasional write operations). My old code was heavily multithreaded, so the old ReaderWriterLock wor...
Available asked 14/2, 2020 at 14:0

2

Solved

I'm trying to mass encode video files in x265 and wanted to come up with a batch file that could automate the process. In order to expedite things, I found that having 3 instances of ffmpeg called ...
Slang asked 31/10, 2015 at 15:0

2

Solved

Recently I was understanding for how threads are different from fibers. This answer says that Threads use pre-emptive scheduling, whereas fibers use cooperative scheduling. In order to get mo...
Skirret asked 16/4, 2019 at 8:5

2

Solved

I want use the following function even when app is in background? - (void)stream:(NSStream *)theStream handleEvent:(NSStreamEvent)streamEvent { case NSStreamEventHasBytesAvailable: { NSLog(@"Ev...
Buchalter asked 14/6, 2012 at 12:8

4

Solved

I have a large app that I will need some time to optimize for iOS9. Edit: What I am worried about is all the UI getting squeezed together when the app window size is reduced. So my question is, i...
Stumper asked 10/6, 2015 at 19:6

4

Solved

Is there any way to create a worker thread in Swift?, for example, if there's a major functionality that requires a lot of calculations and hence causes the main thread to delay for a few seconds, ...
Marden asked 5/7, 2014 at 18:52

5

Solved

Ok here my question. I want to start threads until a certain number. Lets say 100. So it will start starting threads and check continuously number of running threads. When the maximum number reache...
Methedrine asked 3/3, 2013 at 2:3

10

Solved

You all might know that iOS takes a screen shot of your application before throwing it into the background. This is usually for a better User experience like quick animation to bring the app back a...
Garrulous asked 22/9, 2011 at 19:7

5

Solved

I'm a bit confused about how and when to use beginBackgroundTaskWithExpirationHandler. Apple shows in their examples to use it in applicationDidEnterBackground delegate, to get more time to comple...

7

For quite a while I'd been looking into a way in my iPhone app to poll every X minutes to check the data counters. After much reading of the Background Execution documentation and a few trial apps ...
Pushing asked 11/1, 2011 at 9:45

4

Solved

Is it possible to run an application from inside another application? What I want to do is write an app which allows you to chose an app to start, and then displays the activities of this app insid...
Lynda asked 26/5, 2014 at 11:26

3

Can two processes simultaneously run on one CPU core, which has hyper threading? I learn from the Internet. But, I do not see a clear straight answer. Edit: Thanks for discussion and sharing! My...
Nubile asked 18/1, 2012 at 20:10

© 2022 - 2024 — McMap. All rights reserved.