Hitachi

In-Memory Data Grid Hitachi Elastic Application Data Store


2.12.1 Thread pools

On an EADS server, the threads for processing requests from an EADS client are created and pooled in advance. This is called a thread pool.

When the EADS server accepts a request, it allocates a thread from the thread pool and processes the request.

When an EADS server starts, the number of threads pooled in the thread pool equals the maximum number of simultaneous connections.

If there are no more available threads in the thread pool, an error results and communication is cut off. If the number of requests accepted exceeds the maximum number of simultaneous threads, processing is placed in wait status.

After the processing of one request is completed, the thread waits for the next request.

You can reduce the overhead of thread creation and deletion by using thread pools, because with them, repeated creation and deletion of threads is no longer necessary.