|
PKUOS - Pintos
Pintos source browser for PKU Operating System course
|
#include <stdio.h>#include "tests/threads/tests.h"#include "threads/init.h"#include "threads/synch.h"#include "threads/thread.h"
Go to the source code of this file.
Functions | |
| void | test_priority_preempt (void) |
| static void | simple_thread_func (void *aux UNUSED) |
Variables | |
| static thread_func | simple_thread_func |
| Ensures that a high-priority thread really preempts. More... | |
|
static |
Definition at line 31 of file priority-preempt.c.
References msg(), thread_name(), and thread_yield().

| void test_priority_preempt | ( | void | ) |
Definition at line 18 of file priority-preempt.c.
|
static |
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 startled@leland.stanford.edu, Greg Hutchins gmh@leland.stanford.edu, Yu Ping Hu yph@cs.stanford.edu. Modified by arens.
Definition at line 15 of file priority-preempt.c.