-/* Problem 1-3: Priority Scheduling tests.
+/* Ensures that a high-priority thread really preempts.
Based on a test originally submitted for Stanford's CS 140 in
winter 1999 by by Matt Franklin
/* Make sure our priority is the default. */
ASSERT (thread_get_priority () == PRI_DEFAULT);
- thread_create ("high-priority", PRI_DEFAULT - 1, simple_thread_func, NULL);
+ thread_create ("high-priority", PRI_DEFAULT + 1, simple_thread_func, NULL);
msg ("The high-priority thread should have already completed.");
}