Hitachi

uCosminexus Application Server Compatibility Guide


21.4.2 Thread pool and queues used in non-daemon Work

The non-daemon Work is processed using the thread pool and queues. The thread pool and queues used for the process are created in the unit of WorkManager, which is defined in the DD. Set the maximum size of threads that can be pooled in a thread pool. The following section describes the maximum size of threads that can be pooled and relation and operation of the number of threads in a pool, when the non-daemon Work is scheduled.

The maximum number of threads in a thread pool is 10 by default. To change the maximum number of threads, see 21.4.5 Settings in the execution environment. There is no limit for a queue size.

Tip

When you attempt to stop WorkManager, the stop process starts after WorkManager being executed and all the WorkManager processes stored in the queue end. WorkManager, which is stored in the queue is executed even if WorkManager is stopped when storing in a queue.