Date: Mon, 06 Mar 2000 15:35:35 +0000 From: Titus von Boxberg <tboxberg@schuett-elektronik.de> To: Daniel Eischen <eischen@vigrid.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Pthread blocking I/O Message-ID: <38C3D047.42027DAD@schuett-inhouse.de> References: <200003061344.IAA09021@pcnet1.pcnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Daniel Eischen wrote: > > > Apparently it is not possible to shutdown those > > threads from a third thread, neither using close nor shutdown(2) for > > the socket I/O if the threads are blocked during read. > > > > What methods can one use to unblock such a blocked-on-read > > thread? > > The current implementation of FreeBSD pthreads only grants access > to file descriptors to one thread at a time. I think if one thread and per direction (?) > tries to close a file descriptor from which another thread is > reading, that the thread trying to close will block until the > read completes. Thanks for your answer! What's the reason for locking the file descriptors for *all* system calls? especially those I mentioned? Where is pthread_cancel() ? TITUS To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38C3D047.42027DAD>