View previous topic :: View next topic
|
Author |
Message |
anki
New User
Joined: 04 Apr 2008 Posts: 23 Location: Pune
|
|
|
|
I am working on a task of converting assembler program which has been used by a single process in to a program which would be used to process two parallel task.
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.
Answering this question might help me deciding whether to make program re-entrant or not.
Thanks,
Ankit |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
In normal batch-environment the ass-pgm is called via JCL.
So for two jobs using same pgm there are two copies of that programm in
system memory. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
anki wrote: |
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.
Quote: |
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. |
|
Back to top |
|
|
anki
New User
Joined: 04 Apr 2008 Posts: 23 Location: Pune
|
|
|
|
Thanks for answering query. |
|
Back to top |
|
|
|