Next: , Previous: PolyORB Tasking runtimes, Up: Tasking model in PolyORB



5.2 PolyORB ORB Tasking policies

PolyORB ORB Tasking policies control the creation of tasks to process all middleware internal jobs, e.g. request processing, I/O monitoring.

Note: there is a dependency between ORB Tasking policies, and the run-time used

5.2.1 No Tasking

Under the No Tasking ORB policy, no task are created within the middleware instance: it uses the environment task to process all jobs. Note that this policy is not thread-safe and is compatible with the No tasking runtime only.

5.2.2 Thread Pool

Under the Thread Pool ORB policy, the middleware creates a pool of thread during the initialization of PolyORB. This pool processes all jobs. The number of tasks in the thread pool can be configured by three parameters in the [tasking] configuration section.

See PolyORB Tasking configuration, for more information on how to configure the number of tasks in the thread pool.

5.2.3 Thread Per Session

Under the Thread Per Session ORB policy, the middleware creates one task when a new session (one active connection) is opened. The task is finalized when the session is closed.

5.2.4 Thread Per Request

Under the Thread Per Request ORB policy, the middleware creates one task per incoming request. The task is finalized when the request is completed.