Date: Mon, 06 Mar 2000 16:18:33 +0200 From: stefan parvu <stefan.parvu@comptel.com> To: Titus von Boxberg <tboxberg@schuett-elektronik.de> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Pthread blocking I/O Message-ID: <38C3BE39.36CDDA55@comptel.com> References: <38C3BF60.55CF16CC@schuett-inhouse.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, I have not so much experience using POSIX threads, but we had in university a project and for I/O to use threads is not so good method. You slow down the process. Some comments? Isn't so? stefan Titus von Boxberg wrote: > > Hi, > > I use two threads to do I/O for a process. > The I/O takes place either on a socket or > an I/O device (com port) file descriptor. > > 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? > > Thanks, > > TITUS > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message 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?38C3BE39.36CDDA55>