IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Does two processes using single copy of assembler prog?


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anki

New User


Joined: 04 Apr 2008
Posts: 23
Location: Pune

PostPosted: Wed Mar 04, 2009 3:46 pm
Reply with quote

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
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Wed Mar 04, 2009 6:02 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Wed Mar 04, 2009 6:55 pm
Reply with quote

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
View user's profile Send private message
anki

New User


Joined: 04 Apr 2008
Posts: 23
Location: Pune

PostPosted: Thu Mar 05, 2009 10:42 am
Reply with quote

Thanks for answering query.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
Search our Forums:

Back to Top