• 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: Techniques for thread communication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Techniques for thread communication


  • Subject: Re: Techniques for thread communication
  • From: Michael Schmidt <email@hidden>
  • Date: Mon, 8 Sep 2003 12:14:59 +0200
  • Organization: AbsInt GmbH

On Sun, 7 Sep 2003 22:02:11 -0600
Tom Harrington <email@hidden> wrote:

> You cannot do #1, because it doesn't work this way. The docs for
> NSNotification explain that:
>
> "In a multithreaded application, notifications are always delivered in
> the thread in which the notification was posted, which may not be the
> same thread in which an observer registered itself."
>
> So, if you post from the worker thread, you notify in the worker
> thread, even if the registration happened in the main thread. The main
> thread never knows that anything happened until it stumbles across
> updated data.

AFAIR will distributed Notification centers work.

--

Michael Schmidt
_______________________________________________
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: 
 >Techniques for thread communication (From: Eric Scharff <email@hidden>)
 >Re: Techniques for thread communication (From: Tom Harrington <email@hidden>)

  • Prev by Date: Re: NSImage from Palm Bitmap?
  • Next by Date: Re: Techniques for thread communication
  • Previous by thread: Re: Techniques for thread communication
  • Next by thread: Re: Techniques for thread communication
  • Index(es):
    • Date
    • Thread