MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Difference in memory from getmain & malloc to calling pr

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
Nimesh Srivastava
Beginner


Joined: 22 Jul 2003
Posts: 13
Topics: 8

PostPosted: Tue Jul 22, 2003 9:50 am    Post subject: Difference in memory from getmain & malloc to calling pr Reply with quote

Hi,
I am trying to pass Commarea to a program, via XCTL or LINK command
allocating memory to the COMMAREA via malloc or GETMAIN.
Whats the difference between the two and which is the one preferred?
Back to top
View user's profile Send private message Send e-mail
Nimesh Srivastava
Beginner


Joined: 22 Jul 2003
Posts: 13
Topics: 8

PostPosted: Sat Dec 06, 2003 1:24 am    Post subject: Reply with quote

Hi,
I got the answer for my question. Posting it for the reference of others.
Essentially the main difference between malloc or new and GETMAIN is
once an function like malloc or new is called an SVC(supervisory call) to the OS is made from the application to request for the memory.
whereas when an GETMAIN command is used application program requests the CICS SCP (storage control program) for the memory. This memory is used for the DWA(dynamic work area) in programs practising re-entrancy.
Regards,
Nimesh
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group