Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

Waiting for a thread to complete

To wait for a thread, use the WAIT statement.

Read syntax diagramSkip visual syntax diagram>>-WAIT--THREAD--(task-reference)--;---------------------------><
 
THREAD (task-reference)
The THREAD option specifies the thread upon which the process is waiting. The current thread is suspended until the specified thread terminates. As soon as the specified thread has terminated, the current thread resumes.
 
  WAIT THREAD (TI1);

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)