[fpc-pascal]More clone() stuff
Michael Van Canneyt
michael.vancanneyt at wisa.be
Wed Jan 17 11:40:48 CET 2001
On Wed, 17 Jan 2001, FPC Mail list reader wrote:
> Hi again.
> Umm, I'm having trouble making write()'s and connect/recv() calls in a
> multithreaded app. Is there anything else I should know besides the
> fact that I can't call write() simultaneously from 2 threads(that should
> be fixed just by checking if another thread is calling write(), right ?)?
> I've read some stuff about using recv()/send in multithreaded environs,
> but it was pretty confusing. The question is "can recv() be called from 2
> threads at the same time ?".
Normally they should, because these are direct kernel calls ?
But you should check whether the file descriptors for sockets
aren't closed when Clone() is called.
More information about the fpc-pascal