• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTask vs. NSThread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTask vs. NSThread


  • Subject: NSTask vs. NSThread
  • From: Scott Thompson <email@hidden>
  • Date: Tue, 11 Oct 2005 12:39:01 -0500

Early in our launch process we spawn an NSTask to copy some startup files into the user's Application Support folder (if appropriate).

Later in the same routine, we spawn an NSThread that does a simple calculation and then quits.

If we order the routine so that the thread starts before the task is spawned, then the task will hang. If we order things so that the thread is spawned after the task starts, then everything appears to be OK.

Is there some subtlety to using tasks and threads that would cause such behavior?

Scott

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Difference between dvd and dmg
  • Next by Date: Re: AppKit crash: dirIsRootUnsafe
  • Previous by thread: Errors with Binding: Find object with class...
  • Next by thread: How do I observe changes in NSArray contents?
  • Index(es):
    • Date
    • Thread