g****n 发帖数: 18 | 1 I wrote a server. It has a threadGroup (threadPool) keeping track of number of
threads connecting to port 5012, using group.activeCount().
The server also has another port 6012 open and uses it to communicate with a
dispatcher. This is a single thread setup. Is there a way to pass the value
group.activeCount to the thread on port 1235? I tried, but the value is not
updated everytime a client is connected to the server. I am attaching the code
as follows. Can anyone point out where something is w |
|