asked on
C++ is an intermediate-level general-purpose programming language, not to be confused with C or C#. It was developed as a set of extensions to the C programming language to improve type-safety and add support for automatic resource management, object-orientation, generic programming, and exception handling, among other features.
TRUSTED BY
ASKER
To be concrete: the session may last for 5 minutes (so a thread's life might average ~ 5 minutes). There may be say 30 threads in a pool, and that would be the maximum expected # of sessions. Most of the time, though, 80% of those threads will be idle.
Do you have a feeling for if keeping the threads' resources around and idle is more costly than the cost of creating and destroying threads as they're needed?