AndyIbanez / andyibanez-com

Static website.
1 stars 0 forks source link

Background task execution time is CPU time not clock time #20

Open johnkountz opened 3 years ago

johnkountz commented 3 years ago

During testing of BGProcessingTask we discovered that during execution time available to run is 300 seconds for a single threaded task. If the task uses multiple threads, the 300 seconds is spread across all threads you create. So if you create 10 threads, each thread will get (roughly) 30 seconds.

We found this to be quite unacceptable. Apple markets these BGProcessingTask's as appropriate for long running tasks.

Be forewarned.