Squeak Socket Primitives
Georg Gollmann
georg.gollmann at tuwien.ac.at
Wed Nov 10 10:03:10 UTC 1999
At 18:53 Uhr -0800 09.11.1999, Raab, Andreas wrote:
>John & Craig,
>
>> > I think performance will suffer if the Squeak VM continues
>> to poll for socket events.
>>
>> But it doesn't poll. It waits on a semaphore for either some change
>> of socket status or a timeout, whichever comes first.
>
>This is a misunderstanding on both sides. The current socket interface does
>not imply polling since it is controlled by semaphores (correct part of
>John) *but* the current implementations of the socket primitives on
>Windows/Unix use polling on the VM level (correct part of Craig).
At least for Unix that is not quite correct either :-)
In an interactive image polling is used, in a headless server the
primitives are in effect event driven.
Georg
----
Dipl.Ing. Georg Gollmann TU-Wien, Zentraler Informatikdienst
Wiedner Hauptstr. 8-10
phon:(+43-1) 58801 - 42022 A-1040 Wien
fax: (+43-1) 58801 - 42099
mail:gollmann at zid.tuwien.ac.at
http://macos.tuwien.ac.at/Gollmann.html
More information about the Squeak-dev
mailing list
|