View previous topic :: View next topic
|
Author |
Message |
girishms
New User
Joined: 06 Jun 2008 Posts: 21 Location: chennai
|
|
|
|
Hi all,
i am currently facing a problem in multitasking. i wanted to know how to know abt whether a task has ended normally or abnormally using its TCB info ?? is ther any flag in tcb for abend info ??
can anybody help ??
Thanks,
Girish |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
the question is a bit unclear...
could You please describe a bit Your environment
ant tell at what point in processing You want to find out about the abend
thanks |
|
Back to top |
|
|
girishms
New User
Joined: 06 Jun 2008 Posts: 21 Location: chennai
|
|
|
|
HI,
i am trying multitasking operation . creating tasks using ATTACH macro.
suppose a main task has created such 10 subtasks, i want to know tht whether those subtasks are ended normally or abnormally ...
Thanks,
Girish |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
All depends on how sophisticated is Your program structure...
if You look at the attach/attachx macro description
You will notice ....
Quote: |
,ETXR=exit rtn addr
Specifies the address of the end-of-task exit routine to be given control after the new task is normally or abnormally terminated. The exit routine receives control when the originating task becomes active after the subtask is terminated, and must be in virtual storage when required. If you code this parameter, you must issue a DETACH macro to remove the subtask from the system after the subtask terminates.
|
|
|
Back to top |
|
|
girishms
New User
Joined: 06 Jun 2008 Posts: 21 Location: chennai
|
|
|
|
Thanks for the info. |
|
Back to top |
|
|
|