Go Back   ZeroC Forums > Comments

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-22-2006
rc_hz rc_hz is offline
Registered User
 
Name: Eric RC
Organization: www.genband.com
Project: No project yet
 
Join Date: Jul 2004
Location: Hangzhou, China
Posts: 189
Send a message via MSN to rc_hz
-->
Can be ThreadPerConnection implemented as a special case of ThreadPool ?

If we config like this:
Code:
Ice.ThreadPool.Client.Size=1
Ice.ThreadPool.Client.SizeMax=999999

Ice.ThreadPool.Server.Size=1
Ice.ThreadPool.Server.SizeMax=999999

XXXObjectAdapter.ThreadPool.Size=1
XXXObjectAdapter.ThreadPool.SizeMax=999999

(Maybe we should config another item: SizeWarn)
Does it have the same effect as TheadPerConnection ?
__________________
Eric RC
www.genband.com (telecommunication)
I like ICE (Ice for C++/Java/Python)
Reply With Quote
  #2 (permalink)  
Old 09-22-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,534
Hi,

No, it's not equivalent. Here, you'll have one thread and more threads will eventually be created if multiple clients invoke on the server at the same time and there's not enough threads in the thread pool to dispatch the incoming invocations.

With thread per connection, you have exactly one client thread per client connection and each thread is dedicated to the connection to dispatch the incoming calls received over the connection.

Cheers,
Benoit.
Reply With Quote
  #3 (permalink)  
Old 09-22-2006
rc_hz rc_hz is offline
Registered User
 
Name: Eric RC
Organization: www.genband.com
Project: No project yet
 
Join Date: Jul 2004
Location: Hangzhou, China
Posts: 189
Send a message via MSN to rc_hz
-->
Thank you, I am wrong
__________________
Eric RC
www.genband.com (telecommunication)
I like ICE (Ice for C++/Java/Python)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does IceBox support services implemented in python zephyr007 Comments 3 01-23-2008 09:22 AM
Question on ThreadPool ylangin Help Center 1 03-23-2006 09:27 AM
Precisely how are Ice threads implemented? ChrisC Help Center 8 12-22-2005 12:39 PM
may I detected the status of a special client simpley Help Center 3 12-19-2003 07:31 PM
DB_ENV->open: Function not implemented catalin Help Center 2 08-04-2003 04:32 PM


All times are GMT -4. The time now is 02:18 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.