Add thread priority support.
[pintos-anon] / src / threads / synch.c
index be8f0a5a9ad80c7c6dec016987bb23e0aad58d4f..28696d471aecfc67bfffc243f3734b0dd34a09b2 100644 (file)
@@ -117,7 +117,7 @@ sema_self_test (void)
   printf ("Testing semaphores...");
   sema_init (&sema[0], 0, "ping");
   sema_init (&sema[1], 0, "pong");
-  thread_create ("sema-test", sema_test_helper, &sema);
+  thread_create ("sema-test", PRI_DEFAULT, sema_test_helper, &sema);
   for (i = 0; i < 10; i++) 
     {
       sema_up (&sema[0]);