9 Jul 03:07
Re: Message queues: TIsland vs TIslandController
From: Andreas Raab <andreas.raab <at> gmx.de>
Subject: Re: Message queues: TIsland vs TIslandController
Newsgroups: gmane.comp.lang.smalltalk.croquet.devel
Date: 2008-07-09 01:07:10 GMT
Expires: This article expires on 2008-07-23
Subject: Re: Message queues: TIsland vs TIslandController
Newsgroups: gmane.comp.lang.smalltalk.croquet.devel
Date: 2008-07-09 01:07:10 GMT
Expires: This article expires on 2008-07-23
Matthew Fulmer wrote: > I don't understand the relationship between TIsland and > TIslandController. Why do both of them have a message queue and > a current time? Actually TIslandController doesn't have a current time. However, it utilizes its own event loop because there is so much concurrent interaction going on that it's easier to synchronize it by scheduling it via its own event loop. That event queue is entirely unrelated to the islands' queue. > It seems to me that TIsland should have no notion of time, and > just be a message queue, while TIslandController knows about > time and releases messages to the TIsland when it needs them That's exactly what the controller does. The TIsland needs its own notion of time though since it must be able to schedule internal future messages. Cheers, - Andreas
RSS Feed