I suppose you require THREAD due to POSIX or PL/I multi-tasking. I'm sure you are aware that the COBOL THREAD option results in 10-20% increase in CPU time and often greater elapsed time degradation. For example all IO must be locked with THREAD. Also RTEREUSE is not supported for THREAD option modules. Re. your question on working storage longevity, I think that is determined by CEEPIPI
On Tue, Mar 10, 2026 at 2:54 AM [email protected] <[email protected]> wrote: > I worked on a cobol program which only had constants in working storage- > For all other storage an LE GETMAIN/FREEMAIN was issued - I suspect You are > working on something a bit more complicated - > ---------- Original Message ---------- > From: Binyamin Dissen <[email protected]> > To: [email protected] > Subject: COBOL and multithreading > Date: Mon, 9 Mar 2026 17:02:09 +0200 > > I am looking at a GTF trace of a multiuthreading system calling COBOL > programs > compiled with THREAD. > > I am seeing task switching to support the LOAD of a called program, i.e., > the > calling program is running on TCB A but when it issues a call the LOAD SVC > comes from a different TCB. > > Also, if I understand the manuals correctly, the WORKING-STORAGE section > outlives the TCB that originally invoked the program. > > I am not finding a manual that describes the processing or possible > gotchas. > > Can someone supply a pointer? > > -- > Binyamin Dissen <[email protected]> > http://www.dissensoftware.com > > Director, Dissen Software, Bar & Grill - Israel > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
