users@grizzly.java.net

Re: comet throttling

From: Cam Bazz <cambazz_at_gmail.com>
Date: Tue, 8 Jul 2008 00:43:03 +0300

Hello,


>
> how can we implement a
>
>> logic that smoothly notifies all the clients in a round robin fashion?
>>
>
> You might want to use a thread pool and get a thread from pool when you do
> a notification. With this approach, you also make sure you don't block on a
> client that isn't reading fast enough. You waste a thread, but at least
> other clients get the response in a "real-time" way.<users-help_at_grizzly.dev.java.net>


I am sorry but I have not understood what to do here. are you suggesting
number of threads = number of clients??? it does not sound logical to me.

Best,
-C.B.