Permalink
Browse files

fix 4

  • Loading branch information...
1 parent 1b9ea90 commit 60ee88cbeb2af3d7965581a42397c99a80f5be85 @grantborthwick committed Oct 4, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/tests/threads/alarm-negative.c
@@ -32,7 +32,7 @@ test_alarm_negative (void)
thread_create (name, priority, alarm_priority_thread, NULL);
}
printf("starter! (%d)%s\n",(thread_current ()->priority),(thread_current ()->name)); */
- thread_set_priority (PRI_MIN);
+ thread_set_priority (0);
printf("I am the lowest thread. Now I start some more!(%d)%s\n",(thread_current ()->priority),(thread_current ()->name));
for (i = 1; i < 63; i++)
{
@@ -41,7 +41,6 @@ test_alarm_negative (void)
snprintf (name, sizeof name, "priority %d", priority);
thread_create (name, priority, alarm_priority_thread, NULL);
}
- sleep(10);
for (i = 0; i < 10; i++)
sema_up (&wait_sema);
printf("all accounted for.\n");

0 comments on commit 60ee88c

Please sign in to comment.