Results 1 to 3 of 3

Thread: Can be ThreadPerConnection implemented as a special case of ThreadPool ?

  1. #1
    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

    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)

  2. #2
    benoit's Avatar
    benoit is online now ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    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.

  3. #3
    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
    Thank you, I am wrong
    Eric RC
    www.genband.com (telecommunication)
    I like ICE (Ice for C++/Java/Python)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. unknown property Ice.ThreadPerConnection
    By LAstakhov in forum Help Center
    Replies: 2
    Last Post: 11-20-2008, 11:05 AM
  2. File transfer and ThreadPerConnection
    By José Ángel in forum Help Center
    Replies: 5
    Last Post: 11-05-2008, 10:12 AM
  3. Precisely how are Ice threads implemented?
    By ChrisC in forum Help Center
    Replies: 8
    Last Post: 12-22-2005, 11:39 AM
  4. may I detected the status of a special client
    By simpley in forum Help Center
    Replies: 3
    Last Post: 12-19-2003, 06:31 PM
  5. DB_ENV->open: Function not implemented
    By catalin in forum Help Center
    Replies: 2
    Last Post: 08-04-2003, 03:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •