[273] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

pthreads, read() and linux

daemon@ATHENA.MIT.EDU (Todd Enersen)
Wed Feb 21 21:09:01 1996

Date: Wed, 21 Feb 1996 17:38:47 -0800 (PST)
From: Todd Enersen <tee@dgsystems.com>
To: pthreads@MIT.EDU


I've written a device driver under Linux 1.[23].X that doesn't seem to be 
Pthreads combatible.  Basically, one thread is reading from the device 
driver and posting events to a second thread, which is dealing with said 
events.  The read() in the first thread basically causes the second 
thread from executing, since it is a blocking read().  

My question is:  Must all calls to read() be non-blocking in a Pthread 
environment?  And if so, does the standard C library handle this by 
wrapping the read() and open() calls with ones that enforce a 
non-blocking paradigm?

Thanks in advance ...

todd enersen


home help back first fref pref prev next nref lref last post