X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Fsynch.c;h=28696d471aecfc67bfffc243f3734b0dd34a09b2;hb=4ae5b813663cd56fcbe1f1f547c9d445e5dc6107;hp=be8f0a5a9ad80c7c6dec016987bb23e0aad58d4f;hpb=7a48d9a0ac4176681da03e878061b0c59e5bade4;p=pintos-anon diff --git a/src/threads/synch.c b/src/threads/synch.c index be8f0a5..28696d4 100644 --- a/src/threads/synch.c +++ b/src/threads/synch.c @@ -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]);