Re: Multiprocessor Support
Re: Multiprocessor Support
- Subject: Re: Multiprocessor Support
- From: Shawn Erickson <email@hidden>
- Date: Tue, 12 Aug 2003 19:43:41 -0700
On Tuesday, August 12, 2003, at 11:49 AM, Lance Pysher wrote:
Just some general questions about adding MP support. Basically I
wonder how people handle to the threads generated. Several of my
objects would generate several threads during the init process. How
do people make the thread wait until the tasksare done. Do you loop,
put the init thread to sleep, and check for some change. Or do just
figure out someway to finish your init later using a notification, or
some other way.
Why are you creating a thread to do some work just to have the calling
thread block until the other thread is done?
It doesn't sound like a good use of threads to me but it is hard to
understand exact what you are attempting to do.
Many methods exists from using notifications, condition locks, simple
volatile booleans, etc. I would never consider looping to be a solution.
-Shawn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.