"I wonder what's so special about TSO?" TSO in batch or TSO Interactive?
But either way, doesnt TSO normally spin off subtasks with an ATTACH/ATTACHX? Joe On Sun, Aug 9, 2020 at 11:01 AM Thomas David Rivers <riv...@dignus.com> wrote: > Joe Monk wrote: > > >Umm... dont you maintain a table of your pthreads? Like storing off their > >ids somewhere? > > > >If not maybe you should? Then you can have a routine in your exit that > >kills off the pthreads from the table using their id > >before you exit... > > > >Joe > > > >O > > > Yeah - but how do you kill a pthread? You can send it a signal > or a cancel, but if it's not in a "good place" it won't act on those... > and you have no way of knowing if it's dead-or-alive. > > And - there is another chicken-and-egg problem - what if one of > the pthreads is the one invoking BPX _exit()? What kills the > other pthreads? > > This 'feels like' it's better handled as an OS function... not an > application one. > And, I think, in any environment except TSO it is done that way, I wonder > what's so special about TSO? > > > - Dave > > -- > riv...@dignus.com Work: (919) 676-0847 > Get your mainframe programming tools at http://www.dignus.com > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN