PKUOS - Pintos
Pintos source browser for PKU Operating System course
Data Fields
locks Struct Reference

Low-priority main thread L acquires lock A. More...

Collaboration diagram for locks:
Collaboration graph
[legend]

Data Fields

struct locka
 
struct lockb
 

Detailed Description

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.nosp@m.led@.nosp@m.lelan.nosp@m.d.st.nosp@m.anfor.nosp@m.d.ed.nosp@m.u, Greg Hutchins gmh@l.nosp@m.elan.nosp@m.d.sta.nosp@m.nfor.nosp@m.d.edu, Yu Ping Hu yph@c.nosp@m.s.st.nosp@m.anfor.nosp@m.d.ed.nosp@m.u. Modified by arens.

Definition at line 18 of file priority-donate-nest.c.

Field Documentation

◆ a

struct lock* locks::a

Definition at line 20 of file priority-donate-nest.c.

Referenced by medium_thread_func().

◆ b

struct lock* locks::b

Definition at line 21 of file priority-donate-nest.c.

Referenced by medium_thread_func().


The documentation for this struct was generated from the following file: