Skip to contentSkip to conversation

pthread library

DISCUSSION Tyler 2 participants 2 messages Mar 10, 2005 – Mar 11, 2005

lore
Share & tools
lore

Tyler

author
#0 lore raw

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 ?:)

#1 lore raw

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" <[email protected]>
To: <[email protected]>
Sent: Thursday, March 10, 2005 5:38 PM
Subject: pthread library

Quoted 10 lines

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

Quoted 2 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html