Date: Mon, 15 Jul 2002 03:39:00 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: Naje V <najeiv@hotmail.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: named pipes and pthread Message-ID: <3D32A644.EE31B1C9@mindspring.com> References: <F134zARUsHvahJPAaXp00006a95@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Naje V wrote: > Why opening of named pipe blocks all pthreads in process? Because the user space pthreads can only may threads work by trading a blocking operation for a non-blocking operation plus a context switch, and opening a named pipe can not be done via O_NDELAY, while preserving the semantics (i.e. "reader open waits for writer open"). Consider using a real pipe or a socket, instead. -- Terry 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?3D32A644.EE31B1C9>