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 start, Greg Hutchins led@ lelan d.st anfor d.ed ugmh@l, Yu Ping Hu elan d.sta nfor d.eduyph@c. Modified by arens. s.st anfor d.ed u
Definition at line 15 of file priority-preempt.c.