On Tue, 4 Jul 2006 16:31:18 -0500 Vic Petrone <[EMAIL PROTECTED]> wrote:

:>I have an SRB that is scheduled to run in a target address space. The SRB 
:>attempts to determine the status (wait, active and ready) of all TCBs from 
:>job step down. The SRB holds the local lock before attempting to check the 
:>status. I'm trying to figure out a couple of things: 

:>1) How can the SRB determine if the TCB is ready to execute (i.e. 
:>dispatchable)?

:>2) What other things besides the TCBACTIV bit, must be tested in order to 
:>know if a TCB is active?. I found an old post (cached on Google from IBM-
:>MAIN dated 10Sep1999) that says the following... 
:>..."Don't assume anything about TCBACTIV. The entire picture of a task's
:>dispatchability is incredibly volatile and (paraphrasing Alice) you have to
:>look at several unbelievable things at once to get the full picture.
:>Fortunately the dispatcher is the only guy who really needs to and he's
:>twisted anyway "...

:>Any help would be greatly appreciated.

The real question is "what are you trying to do?".

Let us say that you find that at that moment tasks A & B are dispatchable and
C & D are not.

What will you do?

--
Binyamin Dissen <[EMAIL PROTECTED]>
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.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to