In <[EMAIL PROTECTED]>, on
10/25/2007
   at 08:19 PM, Johnny Luo <[EMAIL PROTECTED]> said:

>This leads me to reconsider my understanding about the process of getting
>a spin lock. I used to think what SETLOCK does is just keeping on check
>the lockword and running disabled. Then, what is the difference between a
>spin loop and a disabled loop?

A spin loop is a loop while attempting to acquire a spin lock. A disabled
loop is a loop while running disabled.

>I have another question about RB queue/chain. 

You have the direction reversed. RCBRBP points to the first (most recent)
RB on the chain.

>Here is a RB chain after a new RB is added:
>TCB <-- RB1 <-- RB2 <-- RB3

Try (where RB3 is the newest):

TCB --> RB3 --> RB2 --> RB1

>Then this TCB is dispatched and the RB pointed by TCBRBP will be
>executed. Which one?

The newest.

-- 
     Shmuel (Seymour J.) Metz, SysProg and JOAT
     ISO position; see <http://patriot.net/~shmuel/resume/brief.html> 
We don't care. We don't have to care, we're Congress.
(S877: The Shut up and Eat Your spam act of 2003)

----------------------------------------------------------------------
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