THREAD(a)

Specifies whether or not the created module object will be enabled to run in a multithreaded environment.The possible values are:
  • NOTHREAD The created module object will not be enabled to run in a multithreaded environment. This is the default.
  • SERIALIZE The created module object will be enabled to run in a job with multiple threads. Access to procedures within the module(s) is serialized. That is, each thread safe module will have a recursive mutex that is locked when a procedure is entered and unlocked when the procedure is exited. Within a run unit, only one thread is allowed to be active at any one time for the same module.