|
CS318 - Pintos
Pintos source browser for JHU CS318 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.
References ASSERT, changing_thread, msg(), NULL, PRI_DEFAULT, thread_create(), thread_mlfqs, and thread_set_priority().

|
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.
Referenced by test_priority_change().
1.8.16