|
PKUOS - Pintos
Pintos source browser for PKU Operating System course
|
Low-priority main thread L acquires lock A. More...

Data Fields | |
| struct lock * | a |
| struct lock * | b |
Low-priority main thread L acquires lock A.
Medium-priority thread M then acquires lock B then blocks on acquiring lock A. High-priority thread H then blocks on acquiring lock B. Thus, thread H donates its priority to M, which in turn donates it to thread L.
Based on a test originally submitted for Stanford's CS 140 in winter 1999 by Matt Franklin startled@leland.stanford.edu, Greg Hutchins gmh@leland.stanford.edu, Yu Ping Hu yph@cs.stanford.edu. Modified by arens.
Definition at line 18 of file priority-donate-nest.c.
| struct lock* locks::a |
Definition at line 20 of file priority-donate-nest.c.
Referenced by medium_thread_func().
| struct lock* locks::b |
Definition at line 21 of file priority-donate-nest.c.
Referenced by medium_thread_func().