develooper Front page | perl.ithreads | Postings from December 2007

sysread blocking writer thread?

Thread Next
From:
Shmuel Fomberg
Date:
December 24, 2007 12:10
Subject:
sysread blocking writer thread?
Message ID:
000101c84668$fa48fe90$6801a8c0@semuel7
Hi All.

I have a program where two threads are handling one socket. One thread is
reading and the other is writing to the socket.
(using ActiveState Perl 5.8.8_822 on WinXP)
However, the writer thread sometimes blocks for no apperent reason. I saw
that the reader thead is using sysread, and got a suspicion that this
sysread is blocking the writer thread from writing.

Is it possible?

Thanks,
Shmuel.


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About