Joined: 18 Jul 2007 Posts: 2150 Location: At my coffee table
Now my question is, whether MVS uses single copy of assembler program to process parallel tasks or it uses two different copy of same program to process two parallel tasks.
It depends upon where the executable code is, a whole lot of system code is resident in storage while most application code is loaded into each region as needed.
If the parallel tasks are going to be executing in the same region, there will be only one copy for all tasks.
Answering this question might help me deciding whether to make program re-entrant or not.
As a matter of clean coding, all code should be re-entrant.