On Sun, 24 Feb 2013 14:57:02 GMT "esst...@juno.com" <esst...@juno.com> wrote:
:>Let me see If I understand this. :>Lets Say I Attach a Task (TCB) - the program (RB) associated with that TCB runs and ends. The TCB is not detached. :>At some undertimed time latter an SRB is scheduled into this address space. :>The SRB Issues TCTL with/to the TCB. :>So Do I understand that the program (RB) will be re-executed Again ? There is no RB, thus there is nothing to dispatch. I would expect an 070 abend. :>Is my understanding correct. No. :>Paul D'Angelo :> :> :>---------- Original Message ---------- :>From: David Stokes <sto...@interchip.de> :>To: ASSEMBLER-LIST@LISTSERV.UGA.EDU :>Subject: AW: Curosity Question About TCTL :>Date: Sat, 23 Feb 2013 17:48:23 +0000 :> :>The TCTL or RESUME kicks off the TCB code without it having to wait for the usual scheduling, as long as it is dispatchable. What the TCB code does then is up to it. :> :>>>When the resumed routine finishes executing under the TCB should it re-enter the WAIT state again ? :> :>No, but it presumably will at some point or terminate. :> :>-----Ursprüngliche Nachricht----- :>Von: IBM Mainframe Assembler List [mailto:ASSEMBLER-LIST@LISTSERV.UGA.EDU] Im Auftrag von esst...@juno.com :>Gesendet: Freitag, 22. Februar 2013 17:31 :>An: ASSEMBLER-LIST@LISTSERV.UGA.EDU :>Betreff: Curosity Question About TCTL :> :>I was reading about Scheduling SRBs using IEAMSCHD and discovered the TCTL macro. :> :>The TCTL (transfer control) macro allows an SRB routine to exit from its processing and to pass control to a task with minimal system overhead. When an SRB specifies RESUME RETURN=N, control transfers to the resumed TCB. Control then passes to the top RB on the TCB/RB chain, but only if the system determines that the RB is dispatchable. :> :>Again this is a curosity question and I have nop real reason to use TCTL. :>Am I to understand that the TCB needs to be in a WAIT state ? :> :>When the resumed routine finishes executing under the TCB should it re-enter :>the WAIT state again ? :> :>Its not clear to me how this facility should work. :> :>Can Some one explain the mechanics behind using TCTL and the target Task Control Block. :> :>Paul D'Angelo :>--------------- -- Binyamin Dissen <bdis...@dissensoftware.com> http://www.dissensoftware.com Director, Dissen Software, Bar & Grill - Israel Should you use the mailblocks package and expect a response from me, you should preauthorize the dissensoftware.com domain. I very rarely bother responding to challenge/response systems, especially those from irresponsible companies.