#include <stdio.h>
#include "tests/threads/tests.h"
#include "threads/init.h"
#include "threads/malloc.h"
#include "threads/synch.h"
#include "threads/thread.h"
#include "devices/timer.h"
Go to the source code of this file.
Defines | |
#define | THREAD_CNT 60 |
Functions | |
static void | load_thread (void *aux) |
void | test_mlfqs_load_60 (void) |
static void | load_thread (void *aux UNUSED) |
Variables | |
static int64_t | start_time |
#define THREAD_CNT 60 |
Definition at line 112 of file mlfqs-load-60.c.
Referenced by load_thread(), test_mlfqs_load_60(), and test_mlfqs_load_avg().
static void load_thread | ( | void *aux | UNUSED | ) | [static] |
Definition at line 144 of file mlfqs-load-60.c.
References start_time, thread_set_nice(), timer_elapsed(), TIMER_FREQ, and timer_sleep().
static void load_thread | ( | void * | aux | ) | [static] |
void test_mlfqs_load_60 | ( | void | ) |
Definition at line 115 of file mlfqs-load-60.c.
References ASSERT, load_thread(), msg(), name, NULL, PRI_DEFAULT, snprintf(), start_time, test_mlfqs_load_60, THREAD_CNT, thread_create(), thread_get_load_avg(), thread_mlfqs, timer_elapsed(), TIMER_FREQ, timer_sleep(), and timer_ticks().
int64_t start_time [static] |
Definition at line 108 of file mlfqs-load-60.c.
Referenced by alarm_priority_thread(), block_thread(), load_thread(), test_mlfqs_block(), test_mlfqs_fair(), test_mlfqs_load_1(), test_mlfqs_load_60(), test_mlfqs_load_avg(), and test_mlfqs_recent_1().