Re: Threading and Event Queue Question
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