lock_init (&lock);
cond_init (&condition);
- thread_set_priority (PRI_MAX);
+ thread_set_priority (PRI_MIN);
for (i = 0; i < 10; i++)
{
- int priority = (i + 7) % 10 + PRI_DEFAULT + 1;
+ int priority = PRI_DEFAULT - (i + 7) % 10 - 1;
char name[16];
snprintf (name, sizeof name, "priority %d", priority);
thread_create (name, priority, priority_condvar_thread, NULL);