Squeak Socket Primitives

Craig Latta Craig.Latta at NetJam.ORG
Wed Nov 10 04:14:47 UTC 1999


> ...from my memory there was just one difference on the low
> level which is having two semaphores instead of one. Everything else
> can be implemented by *either* polling or OS threads and a decision 
> about what way to go on a particular platform (or set of platforms such 
> as on Unix) is still up to the person writing the primitive 
> implementation.

	I don't think that's wise. In fact, it speaks to my main point: the VM needs to wait for network events at the host level in order to be efficient. Not doing so causes pointless complication in addition to poor performance. These goals of efficiency and simplicity prescribe a certain design of the primitive functions, and *also* of the interface to them from Smalltalk.

	This is *not* merely a matter of how many Smalltalk semaphores to use.


-C



--
Craig Latta
composer and computer scientist
craig.latta at netjam.org
www.netjam.org
latta at interval.com
Smalltalkers do: [:it | All with: Class, (And love: it)]





More information about the Squeak-dev mailing list