PKUOS - Pintos
Pintos source browser for PKU Operating System course
|
#include <stdio.h>
#include "tests/threads/tests.h"
#include "threads/init.h"
#include "devices/timer.h"
#include "threads/malloc.h"
#include "threads/synch.h"
#include "threads/thread.h"
Go to the source code of this file.
Data Structures | |
struct | simple_thread_data |
Creates several threads all at the same priority and ensures that they consistently run in the same round-robin order. More... | |
Macros | |
#define | THREAD_CNT 16 |
#define | ITER_CNT 16 |
Functions | |
void | test_priority_fifo (void) |
static void | simple_thread_func (void *data_) |
Variables | |
static thread_func | simple_thread_func |
#define ITER_CNT 16 |
Definition at line 27 of file priority-fifo.c.
#define THREAD_CNT 16 |
Definition at line 26 of file priority-fifo.c.
|
static |
Definition at line 87 of file priority-fifo.c.
References simple_thread_data::id, ITER_CNT, simple_thread_data::lock, lock_acquire(), lock_release(), simple_thread_data::op, and thread_yield().
void test_priority_fifo | ( | void | ) |
Definition at line 32 of file priority-fifo.c.
|
static |
Definition at line 29 of file priority-fifo.c.