• 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
Re: Multiprocessor Support
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Multiprocessor Support (From: Lance Pysher <email@hidden>)

  • Prev by Date: Re: Triangle Collapse
  • Next by Date: Re: Tons of fun w/NSComboBox
  • Previous by thread: Re: Multiprocessor Support
  • Next by thread: Interface Builder Pasteboard types and accessing images from the "Images" tab?
  • Index(es):
    • Date
    • Thread