NSTask vs. NSThread
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