Yeah,it seems all ok!
>On Fri, Nov 07, 2003 at 01:24:29PM -0500, Christopher Faylor wrote:
>>On Fri, Nov 07, 2003 at 10:44:20AM -0500, Joe Buehler wrote:
>>>zhouxin wrote:
>>>>If the udp worker's count greater than 18,some thread's select() hang
>>&g
hi,all
I have reported this problem a week ago.I belive that the test_select.c(see below)
is
correct.The usage of select() is classical.
This testing program initialize a number of threads, each thread create a socket
and
send UDP packet to UDP server,then wait response by calling selec
, &tv))==1)
>> *rep = radius_recv(sockfd);
>>...
This test code is cut from a multi-thread radius(Authentication,Accounting
protocol,UDP) client.
if radius thread count > 18,some thread's select() will take 100% CPU in cygwin
envirionment,
but
Cygwin implementation of select() take 100% CPU under multi-thread environment
sometimes.
I have wrote a short test program(see below test_select.c) that reproduces the bug:
#uname -a
CYGWIN_NT-5.1 zipxing 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown
#gcc -o tsel test_select.c
#./tsel 5 (5 threa
4 matches
Mail list logo