Mediumweight thread (MWT)

Terminating an MWT does not require that the task terminate. You can terminate it by using the PTGETNEWTHREAD option on the pthread_exit_and_get service. The pthread-creating task initialization routine that is specified on the pthread_create service can repeatedly call the pthread_exit_and_get service, getting new thread requests as they are created. This avoids the overhead of task creation and termination for each thread.

For information on HWTs and MWTs, see pthread_create (BPX1PTC, BPX4PTC) — Create a thread.