linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pthread library
@ 2005-03-10 22:38 Tyler
  2005-03-11  0:40 ` John T. Williams
  0 siblings, 1 reply; 2+ messages in thread
From: Tyler @ 2005-03-10 22:38 UTC (permalink / raw)
  To: linux-c-programming

Hi,

I have a little question about the pthread library under linux.
For example, we have a thread A and a thread B.
If A do a read (which is a blocking operation), all the process will be 
blocked so thread B will be blocked too.
That's true ?:)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: pthread library
  2005-03-10 22:38 pthread library Tyler
@ 2005-03-11  0:40 ` John T. Williams
  0 siblings, 0 replies; 2+ messages in thread
From: John T. Williams @ 2005-03-11  0:40 UTC (permalink / raw)
  To: linux-c-programming

nope.  ThreadB will continue to run even if ThreadA is waiting for a system
call to return.  This is part of the purpose of threads.

----- Original Message ----- 
From: "Tyler" <tyler@agat.net>
To: <linux-c-programming@vger.kernel.org>
Sent: Thursday, March 10, 2005 5:38 PM
Subject: pthread library


> Hi,
>
> I have a little question about the pthread library under linux.
> For example, we have a thread A and a thread B.
> If A do a read (which is a blocking operation), all the process will be
> blocked so thread B will be blocked too.
> That's true ?:)
>
> -
> To unsubscribe from this list: send the line "unsubscribe
linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-11  0:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-10 22:38 pthread library Tyler
2005-03-11  0:40 ` John T. Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).