On Fri, Aug 14, 2009 at 3:49 PM, Andreas Raab
<[hidden email]> 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