Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Does two processes using single copy of assembler prog?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Does two processes using single copy of assembler prog?
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: 743
Location: Germany

PostPosted: Wed Mar 04, 2009 6:02 pm    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Wed Mar 04, 2009 6:55 pm    Post subject: Re: Does two processes using single copy of assembler prog?
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    Post subject: Reply to: Does two processes using single copy of assembler
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts A not very Christmassy PL/I tale, wit... prino PL/I & Assembler 3 Mon Dec 26, 2016 1:01 am
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us