Re: thead security

seawind wrote:
HI all:
Call poll() function at two threads, and the important is the two
threads are waitting for the same socket descriptor . one of them is
set POLLIN , the other is set POLLOUT. What i want to know is whether
i should protect the socket descriptor by using lock. thanks advance

That might be a better question for comp.programming.threads.

Rosetta Code -- Building a Rosetta Stone for Programmers