[squeak-dev] Re: Question about Socket

Mariano Martinez Peck marianopeck at gmail.com
Sat Aug 15 00:56:35 UTC 2009


On Fri, Aug 14, 2009 at 3:49 PM, Andreas Raab <andreas.raab at gmx.de> wrote:

> 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.


Good news then. Thanks for the explanation Andreas.


>
>
> Cheers,
>  - Andreas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20090814/ad90c593/attachment.htm


More information about the Squeak-dev mailing list