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 start, Greg Hutchins led@ lelan d.st anfor d.ed ugmh@l, Yu Ping Hu elan d.sta nfor d.eduyph@c. Modified by arens. s.st anfor d.ed u
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().