X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ftests%2Fthreads%2Falarm-wait.c;h=458e987affa670f1088451dc4b0386f5145671f9;hb=b3563c2ef34e52288c8cf7a68db0f7ae3b2f9b69;hp=1e584386af3215c7a45fb8f06dfd50ab6df6427d;hpb=4ebf33908a571a7cde93fe618902b044e3633cdf;p=pintos-anon diff --git a/src/tests/threads/alarm-wait.c b/src/tests/threads/alarm-wait.c index 1e58438..458e987 100644 --- a/src/tests/threads/alarm-wait.c +++ b/src/tests/threads/alarm-wait.c @@ -1,6 +1,4 @@ -/* Problem 1-1: Alarm Clock tests. - - Creates N threads, each of which sleeps a different, fixed +/* Creates N threads, each of which sleeps a different, fixed duration, M times. Records the wake-up order and verifies that it is valid. */ @@ -147,7 +145,6 @@ sleeper (void *t_) { int64_t sleep_until = test->start + i * t->duration; timer_sleep (sleep_until - timer_ticks ()); - lock_acquire (&test->output_lock); *test->output_pos++ = t->id; lock_release (&test->output_lock);