• 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: Threading and Event Queue Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Threading and Event Queue Question


  • Subject: Re: Threading and Event Queue Question
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 3 Aug 2010 13:55:34 -0700

On Tue, Aug 3, 2010 at 1:40 PM, Phil Hystad <email@hidden> wrote:
> As an example, I noticed that each separate Tab of a Chrome browser instance is itself a separate process.  Yet, each separate tab of Safari seems to be folded into the single Safari process.  I have also noted that tabs in Safari are totally independent of each other such that I can be playing music from Pandora on one tab and watching a Netflix movie in another tab of the same Safari instance.
>
> From my knowledge of the MS Windows platform (WPF for example), this cannot be done.  That is, a process has a single event queue from which events are dispatched (control events like mouse, timer, and so on).  Yet, on Apple Cocoa it seems that you can have multiple event queues within a single process.

This has nothing to do with multiple event queues. You're talking
about concurrency, which can be supported fine with just one event
queue. In Cocoa, the main thread is responsible for managing the app's
event queue. You'll find the same thing is done quite frequently on
Windows.

--Kyle Sluder
_______________________________________________

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

References: 
 >Threading and Event Queue Question (From: Phil Hystad <email@hidden>)

  • Prev by Date: Re: NSPanel, changing the look of the min button
  • Next by Date: Re: Threading and Event Queue Question
  • Previous by thread: Threading and Event Queue Question
  • Next by thread: Re: Threading and Event Queue Question
  • Index(es):
    • Date
    • Thread