• 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
Multithreaded Cocoa Document Application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multithreaded Cocoa Document Application?


  • Subject: Multithreaded Cocoa Document Application?
  • From: "Rick Ekle" <email@hidden>
  • Date: Thu, 23 Aug 2007 20:56:29 -0400

Does anyone have an example of how to write a Cocoa application so
that each document is handled in a separate thread?  Either that or a
way to open a series of documents and have each open in a separate
process..

I'm trying to write an application that can open multiple files at
once and perform some potentially long processing on each.  I'd like
to have each document open in a separate thread or process so that the
application can better take advantage of a multicore processor to
process multiple files simultaneously.

Any ideas?

Also, the NSThread class seems to simply launch threads.  These
threads are launched but there is no way to know anything about them.
How do you monitor a thread and wait for it to exit?  How do force a
thread to exit early?  Would I have to resort to pthreads to get this
kind of functionality?  NSThread seems kinda useless if you have no
way to communicate between threads..

Thanks for the help,

Rick
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Multithreaded Cocoa Document Application?
      • From: mmalc crawford <email@hidden>
    • Re: Multithreaded Cocoa Document Application?
      • From: Seth Willits <email@hidden>
    • Re: Multithreaded Cocoa Document Application?
      • From: Andrew Merenbach <email@hidden>
  • Prev by Date: Re: AppKit Addition usage
  • Next by Date: Re: AppKit Addition usage
  • Previous by thread: window ordering when inactive
  • Next by thread: Re: Multithreaded Cocoa Document Application?
  • Index(es):
    • Date
    • Thread