I just write a problem. It use 5 threads to set value in the buffer value
and 5 threads to get the buffer value. The buffer only can handle 3 array.
The buffer is in the server side, and the 10 threads is the client side.
when I execute 10 stream socket threads in one main method, it will set
value in the buffer, over 3 it will wait...
The problem is here, I need to use the other 5 thread to get the buffer
value, then free the buffer, but this action didn't take, as the 5 threads,
which set value, still wait to write the value, the buffer can't be free.
it seems that the 10 thread don't run in same time, just like one by one,
can any one tell me how to run 10 threads in same time...
thanks a lot......
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----