X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftests%2Fthreads%2Fpriority-donate-one.c;h=603a7fe45a9b3469133f21aef75041d596a2981a;hb=94ef10ad53439c273d7c1e7397223c1cbd41f1f1;hp=087371f1a4cb491a5f1819437a1d22fcca5c84b6;hpb=4ebf33908a571a7cde93fe618902b044e3633cdf;p=pintos-anon diff --git a/src/tests/threads/priority-donate-one.c b/src/tests/threads/priority-donate-one.c index 087371f..603a7fe 100644 --- a/src/tests/threads/priority-donate-one.c +++ b/src/tests/threads/priority-donate-one.c @@ -1,10 +1,13 @@ -/* Problem 1-3: Priority Scheduling tests. +/* The main thread acquires a lock. Then it creates two + higher-priority threads that block acquiring the lock, causing + them to donate their priorities to the main thread. When the + main thread releases the lock, the other threads should + acquire it in priority order. Based on a test originally submitted for Stanford's CS 140 in - winter 1999 by by Matt Franklin - , Greg Hutchins - , Yu Ping Hu . - Modified by arens. */ + winter 1999 by Matt Franklin , + Greg Hutchins , Yu Ping Hu + . Modified by arens. */ #include #include "tests/threads/tests.h"