Add thread priority support.
[pintos-anon] / src / threads / test.c
index 4c7bfedd18f4e901c2d298e000cd357030de4985..ae9d16d8e2aba7a3491ba5ea617b85170990e6a8 100644 (file)
@@ -63,7 +63,7 @@ test_sleep (int iterations)
       t->product = &product;
       t->lock = &lock;
       sema_init (&t->done, 0, name);
-      t->tid = thread_create (name, sleeper, t);
+      t->tid = thread_create (name, PRI_DEFAULT, sleeper, t);
     }
   
   /* Wait for all the threads to finish. */