Home Comments

Can be ThreadPerConnection implemented as a special case of ThreadPool ?

rc_hzrc_hz Member Eric RCOrganization: www.genband.comProject: No project yet ✭✭✭
If we config like this:
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 ?

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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.
  • rc_hzrc_hz Member Eric RCOrganization: www.genband.comProject: No project yet ✭✭✭
    Thank you, I am wrong:)
Sign In or Register to comment.