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

What is re-entrant in PL/I ?


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

New User


Joined: 29 Sep 2005
Posts: 9

PostPosted: Thu Sep 29, 2005 10:10 pm
Reply with quote

Can any one help me in understanding the reentrant logic inPL/I
Back to top
View user's profile Send private message
sumanthmain

New User


Joined: 22 Aug 2005
Posts: 14

PostPosted: Sat Oct 01, 2005 1:50 am
Reply with quote

reentrent in pl/1 is Like recursive funition. its like c progarms recursive funtion.

Recursive funtion in PL/1 IS POSSBILE.. but in cobol its not possible.

cheers
sumanth
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Sat Oct 01, 2005 11:34 am
Reply with quote

Hi,
Sumanth,reentrant and recursive are NOT the same.
Recursive:-Procedure calling itself.
Reentrant:-Procedure called by other procedures asynchronously.
Athanga,here is an example/explanation for reentrant.
Say,task2 invokes function1.Another task,task1 which is of higher priority than task2,wants to use function1.In this case,task2 is held and task1 uses function1.Once task1 is done,task2 which was held,starts using function1 from where it left and continues till the end.
Hope this helps...
Regards,
Sridevi.
Back to top
View user's profile Send private message
sumanthmain

New User


Joined: 22 Aug 2005
Posts: 14

PostPosted: Sat Oct 01, 2005 9:04 pm
Reply with quote

Thanks sridevi for ur correction.

I will appriciate regarding the prompt reply in form.

could u plz Explain where we can use in real time. ( about reentrant).


Cordially
sumanth
Back to top
View user's profile Send private message
Athanga

New User


Joined: 29 Sep 2005
Posts: 9

PostPosted: Mon Oct 03, 2005 11:14 pm
Reply with quote

Hi devi,

Even I read the same from the book...

I have seen this function only in PL/I online pgms, not on batch.

Is it somthing related to the CICS reentrant?

thks,
Aravind
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Wed Oct 05, 2005 2:52 am
Reply with quote

Obviously only in online programs like CICS,TELON.
Rgds,
Sridevi
Back to top
View user's profile Send private message
jawadshaik
Warnings : 1

New User


Joined: 27 Sep 2005
Posts: 16

PostPosted: Tue Oct 18, 2005 11:17 am
Reply with quote

HI

can any one give me the programming example where multitasking is used as sridevi mentioned ( task and task2).

I would get the idea clearly if coding is provided

regards,

jawadshaik
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 Assembler: A simple re-entrant progra... PL/I & Assembler 3
No new posts What is Re Entrant Program and what i... PL/I & Assembler 1
No new posts Re-entrant VS Non-reentrant CICS 4
Search our Forums:

Back to Top