View previous topic :: View next topic
|
Author |
Message |
Athanga
New User
Joined: 29 Sep 2005 Posts: 9
|
|
|
|
Can any one help me in understanding the reentrant logic inPL/I |
|
Back to top |
|
|
sumanthmain
New User
Joined: 22 Aug 2005 Posts: 14
|
|
|
|
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 |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
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 |
|
|
sumanthmain
New User
Joined: 22 Aug 2005 Posts: 14
|
|
|
|
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 |
|
|
Athanga
New User
Joined: 29 Sep 2005 Posts: 9
|
|
|
|
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 |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
|
|
Obviously only in online programs like CICS,TELON.
Rgds,
Sridevi |
|
Back to top |
|
|
jawadshaik Warnings : 1 New User
Joined: 27 Sep 2005 Posts: 16
|
|
|
|
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 |
|
|
|