#include <stdio.h>
#include <inttypes.h>
#include "tests/threads/tests.h"
#include "threads/init.h"
#include "threads/malloc.h"
#include "threads/palloc.h"
#include "threads/synch.h"
#include "threads/thread.h"
#include "devices/timer.h"
Go to the source code of this file.
Data Structures | |
struct | thread_info |
Defines | |
#define | MAX_THREAD_CNT 20 |
Functions | |
static void | test_mlfqs_fair (int thread_cnt, int nice_min, int nice_step) |
void | test_mlfqs_fair_2 (void) |
void | test_mlfqs_fair_20 (void) |
void | test_mlfqs_nice_2 (void) |
void | test_mlfqs_nice_10 (void) |
static void | load_thread (void *aux) |
#define MAX_THREAD_CNT 20 |
Definition at line 54 of file mlfqs-fair.c.
static void load_thread | ( | void * | aux | ) | [static] |
Definition at line 108 of file mlfqs-fair.c.
References thread_info::nice, thread_info::start_time, thread_set_nice(), thread_info::tick_count, timer_elapsed(), TIMER_FREQ, timer_sleep(), and timer_ticks().
Referenced by test_mlfqs_fair(), test_mlfqs_load_60(), and test_mlfqs_load_avg().
static void test_mlfqs_fair | ( | int | thread_cnt, | |
int | nice_min, | |||
int | nice_step | |||
) | [static] |
Definition at line 66 of file mlfqs-fair.c.
References ASSERT, load_thread(), msg(), name, thread_info::nice, PRI_DEFAULT, PRId64, snprintf(), thread_info::start_time, start_time, thread_create(), thread_mlfqs, thread_set_nice(), thread_info::tick_count, timer_elapsed(), TIMER_FREQ, timer_sleep(), and timer_ticks().
Referenced by test_mlfqs_fair_2(), test_mlfqs_fair_20(), test_mlfqs_nice_10(), and test_mlfqs_nice_2().
void test_mlfqs_fair_2 | ( | void | ) |
void test_mlfqs_fair_20 | ( | void | ) |
void test_mlfqs_nice_10 | ( | void | ) |
void test_mlfqs_nice_2 | ( | void | ) |