#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 *seq_no) |
void | test_mlfqs_load_avg (void) |
Variables | |
static int64_t | start_time |
#define THREAD_CNT 60 |
Definition at line 123 of file mlfqs-load-avg.c.
static void load_thread | ( | void * | seq_no | ) | [static] |
Definition at line 156 of file mlfqs-load-avg.c.
References start_time, THREAD_CNT, timer_elapsed(), TIMER_FREQ, and timer_sleep().
void test_mlfqs_load_avg | ( | void | ) |
Definition at line 126 of file mlfqs-load-avg.c.
References ASSERT, load_thread(), msg(), name, PRI_DEFAULT, snprintf(), start_time, test_mlfqs_load_avg, THREAD_CNT, thread_create(), thread_get_load_avg(), thread_mlfqs, thread_set_nice(), timer_elapsed(), TIMER_FREQ, timer_sleep(), and timer_ticks().
int64_t start_time [static] |
Definition at line 119 of file mlfqs-load-avg.c.