|
|
|
|||||
|
Question about the Connection#4.
Hi, Matthrew,
In the file "Config.Server" of sample codes in the connection#4, you increased the ThreadPool.Client.Size to 4 and commented that " Since the server makes calls from an AMI callback its necessary to increase the size of the client thread pool." My question is that whether the "increasing" is necessary otherwise will lead to deadlock or is preferable otherwise may lead to the thread starvation? If the latter, why did you not increase the ThreadPool.Server.Size? I am always afraid of the deadlock when I am programming using ICE, especially when I have to select a proper thread number. So far as to me , what I can do is to avoid the nested callbacks Hope getting your help. Thank you . OrNot |
|
|||||
|
Thank you Matthrew. I have read the 30.3.4 carefully again. It's helpful. But I still have some questions
.1) Quote:
similarly, I think the server threadpool size also should be increased in case that many invitations from many users arrive at the chat server at the same time. In current configure, these invitations are serialized and then dispacthed asynchronously. In a word, I think that since we have increased the client thread pool size to deal with the simultaneous callbacks, we'd better increase the server threadpool size to deal with the simultaneous requests. 2) The value 4 is set only by experiences or obey some rules such as in the Nested demo ,which used a sz*2 formula? Best Regards-OrNot Last edited by OrNot : 07-22-2005 at 12:52 AM. |
|
||||||
|
Sorry, the configuration file comment is incorrect on this point.
The server as it stands can actually can work with a client side thread pool of size 1 since the AMI callback only makes replies on an AMD callback object. The AMD callback sends the message in the calling thread, and glacier2 cannot block. The thread pools, as you say, can be set larger to allow higher concurrency. Regards, Matthew |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A question about Ice connection | laotee | Help Center | 3 | 10-26-2005 04:02 AM |
| Question about the Connection#5 | OrNot | Help Center | 1 | 08-07-2005 11:16 PM |
| A question about bidirectional connection | rc_hz | Help Center | 3 | 07-21-2005 08:12 AM |
| A question about Connection Reuse in Ice | rc_hz | Help Center | 5 | 06-01-2005 08:31 AM |
| A question about Connection Management | rc_hz | Help Center | 9 | 05-31-2005 11:57 PM |