The OMThread class in the execution framework aggregates OMOSThread to provide the basic threading features. The operating system factory's createOMOSThread method creates a raw thread. No constructor is declared for OMOSThread because any C++ compiler knows how to add a constructor if it not defined explicitly.
OMOSThread has the following static constant variables, which provide default values for user-controllable parameters: stack size, message queue size, and thread priority. Each static variable can be initialized with constants whose values can vary depending on the operating system being targeted, as shown in the following table.
| Static Constant Variables | Initialization Constants |
|---|---|
| DefaultStackSize | SMALL_STACK or DEFAULT_STACK |
| DefaultMessageQueueSize | MQ_DEFAULT_SIZE |
| DefaultThreadPriority | PRIORITY_HIGH, PRIORITY_NORMAL, or PRIORITY_LOW |