To create and run the multithreading example, follow these steps:
CRTCBLMOD MODULE(THRCBL) SRCFILE(*CURLIB/QCBLLESRC) DBGVIEW(*ALL)
CRTCBLMOD MODULE(SUBA) SRCFILE(*CURLIB/QCBLLESRC) DBGVIEW(*ALL)
CRTCBLMOD MODULE(SUBB) SRCFILE(*CURLIB/QCBLLESRC) DBGVIEW(*ALL)
CRTPGM PGM(THREAD) MODULE(*CURLIB/THRCBL *CURLIB/SUBA *CURLIB/SUBB)
SPAWN MYLIB/THREAD DEBUG(2)
For information on how to create a SPAWN command, refer to the Multithreaded Applications document, listed under the Programming topic, at the following URL: http://www.ibm.com/eserver/iseries/infocenter
IN SUBB IN SUBA
or as,
IN SUBA IN SUBB
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.