On Sep 27, 2015, at 10:33 AM, Scott Ribe wrote: > On Sep 26, 2015, at 12:19 PM, Programmingkid <[email protected]> > wrote: >> >> I just wish there were an easy way for the a task on the main thread to >> continue to work even if the user is looking at a menu. Using multiple >> threads has a lot of problems associated with it. > > A simple way to interleave execution of two different tasks without using > threads? You're essentially wishing for magic fairy dust.
You are right. > Yes, there are ways to interleave two tasks without threads, but building a > little finite state machine that interleaves between them, or coming up with > some co-routine implementation and then yielding at key points, as in the old > days of cooperative multi-processing, have way more problems than multiple > threads. > > If you have computation that needs to keep running without blocking menu > tracking and other event handling, you need to put it on its own thread, > period. I realize this now. Thank you everyone for your input _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
