PKUOS - Pintos
Pintos source browser for PKU Operating System course
|
#include <stdio.h>
#include "tests/threads/tests.h"
#include "threads/init.h"
#include "threads/thread.h"
Go to the source code of this file.
Functions | |
void | test_priority_change (void) |
static void | changing_thread (void *aux UNUSED) |
Variables | |
static thread_func | changing_thread |
Verifies that lowering a thread's priority so that it is no longer the highest-priority thread in the system causes it to yield immediately. More... | |
|
static |
Definition at line 26 of file priority-change.c.
References msg(), PRI_DEFAULT, and thread_set_priority().
void test_priority_change | ( | void | ) |
Definition at line 13 of file priority-change.c.
|
static |
Verifies that lowering a thread's priority so that it is no longer the highest-priority thread in the system causes it to yield immediately.
Definition at line 10 of file priority-change.c.