• 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: Threads in Apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Threads in Apps


  • Subject: Re: Threads in Apps
  • From: "Nick Emery" <email@hidden>
  • Date: Wed, 06 Jun 2001 09:21:16 +0100
  • Organization: Peramon technology Ltd

Dennis C. De Mars wrote:

> First of all, the document you guys need to read is "Thread Support in the
> Application Kit" which you can find here:
>
> http://developer.apple.com/techpubs/macosx/ReleaseNotes/ThreadSupport.html

thanks for the pointer. i had read this sometime back, but lost the pointer to it. its mostly not applicable to java cocoa because most of the interesting classes (NSConnection, NSThread) are not implemented and even those that are implemented (NSPort) or not sufficiently complete to be useful.

> Regarding Java threads, I would recommend reading the series published in
> JavaWorld (www.javaworld.com) a year or two ago.

i'm not really looking for java threading information, but java cocoa threading information.

> I don't have an answer for your problems with notifying the main thread from
> a Java sub-thread. Posting to the default notification queue should have
> worked...the thing is, a Java thread may not be recognized as a separate
> thread by the Cocoa runtime, so that may be causing some problems, but
> _surely_ Apple covered this in their Cocoa Java documentation. Is it
> possible to use NSThread from Java...or does this have to be a Java
> subthread. (I know this issue is dealt with in the Apple documentation, but
> it's probably been over a year since I looked at the Java stuff.)

NSThread is not exposed in java. you are supposed to use ``native'' java threads. Apple did not obviously cover this in their java cocoa documentation (i certainly can't find it). there are some oblique references to threading (e.g., posting an event in a subthread causes the event to be posted in the main thread's run loop), but that is about it...

--nikki


  • Follow-Ups:
    • Re: Threads in Apps
      • From: Mal Paine <email@hidden>
References: 
 >Re: Threads in Apps (From: "Dennis C. De Mars" <email@hidden>)

  • Prev by Date: Re: Subclassing NSTableView
  • Next by Date: Re: Threads in Apps
  • Previous by thread: Re: Threads in Apps
  • Next by thread: Re: Threads in Apps
  • Index(es):
    • Date
    • Thread