You may want to look at NSOperation.
Regards
laurent
Sent from my road phone
On Jun 15, 2010, at 12:22 AM, Ariel Feinerman <[email protected]>
wrote:
Hi,
I wish to make programme has cpu-related (one thread per core)
number of
worker threads. When user inputs the data, main thread splits up the
data
and send to the workers. Then worker threads go to sleep in
anticipation of
the next chunk of data. How can I do it? I think to NSRunLoop is the
best
way, is the example of code?
--
best regards
Ariel
_______________________________________________
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:
http://lists.apple.com/mailman/options/cocoa-dev/lcerveau%40me.com
This email sent to [email protected]
_______________________________________________
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]