I believe so, yes. "Thread" in the UNIXey world = Task or TCB in the z/OSish 
world (or conceivably SRB, but generally TCB).

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of scott Ford
Sent: Thursday, December 29, 2016 9:32 AM
To: [email protected]
Subject: Re: Multi SRB

Guys,

Then if one was writing a multi-threaded C or C++ application in a MVS address 
space is it considered TCBs for each thread ?

Scott

On Thursday, December 29, 2016, Peter Relson <[email protected]> wrote:

> >:>>can there be multiple SRB's executing :>>the same piece code  in 
> >the same address space ...
> >SRBs go to addresses and they do not care about the attributes of the
> code.
> >CALL doesn't care either.
>
> Binyamin is of course correct. It is entirely up to the coder to make 
> sure that the storage containing the code to be executed by the work 
> unit does not vanish from underneath them (as could happen if it was 
> placed in task-owned storage and that task was able to terminate 
> before the SRB terminated). And it is up to the coder to make sure 
> that the code can handle it.
>
> Peter Relson
> z/OS Core Technology Design
>
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send 
> email to [email protected] <javascript:;> 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

Reply via email to