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: 755
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 Dump analysis of an assembler module monica1 PL/I & Assembler 4 Tue May 09, 2017 10:05 am
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm


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