Archived

This forum has been archived. Please start a new discussion on GitHub.

Can be ThreadPerConnection implemented as a special case of ThreadPool ?

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

  • benoit
    benoit Rennes, France
    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.
  • Thank you, I am wrong:)