X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftests%2Fthreads%2Fpriority-donate-nest.c;h=1f245847698c3bc8254fe7d3726b9ff8530970a5;hb=0d095b17daaed97df1943ac031058b428ad3f5fa;hp=15141b777958cd50f6b14ac87ab62ce92be8a6a2;hpb=f9e00d42dfcc725ab195c5ed75561eefb282bc27;p=pintos-anon diff --git a/src/tests/threads/priority-donate-nest.c b/src/tests/threads/priority-donate-nest.c index 15141b7..1f24584 100644 --- a/src/tests/threads/priority-donate-nest.c +++ b/src/tests/threads/priority-donate-nest.c @@ -1,4 +1,10 @@ -/* Based on a test originally submitted for Stanford's CS 140 in +/* 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 , Greg Hutchins , Yu Ping Hu . Modified by arens. */