[squeak-dev] Re: Question about Socket
Andreas Raab
andreas.raab at gmx.de
Fri Aug 14 18:49:50 UTC 2009
Mariano Martinez Peck wrote:
> Hi folks: I am preparing my SqueakDBX talk for ESUG and I am doing some
> comparisons between a database driver with an external library trough
> FFI and a native driver. I know FFI locks the VM until the function it
> is being invoked, finishes. But I don't know what happens with Sockets.
> Do sockets lock the hole VM until you obtain a response?
The socket interfaces are entirely asynchronous, i.e., there is no
blocking. Sockets have semaphores associated with them that are signaled
when anything interesting is happening. Check out methods like
Socket>>sendData: to see how this stuff works together.
Cheers,
- Andreas
More information about the Squeak-dev
mailing list
|