/* Mmaps a 128 kB file “sorts” the bytes in it, using quick sort, a multi-pass divide and conquer algorithm. */ #include #include #include “tests/lib.h”…
# -*- perl -*- # The expected output looks like this: # # (priority-fifo) iteration: 0 1 2 3 4 5 6 7 8 9…
/* Tries to map a zero-length file, which may or may not work but should not terminate the process or crash. Then dereferences the address…
#include #include “devices/input.h” #include “devices/serial.h” #include “devices/intq.h” #include “devices/timer.h” #include “threads/io.h” #include “threads/interrupt.h” #include “threads/thread.h” /* Register definitions for the 16550A UART used in PCs.…
# -*- perl -*- use strict; use warnings; use tests::tests; sub check_process_death { my ($proc_name) = @_; our ($test); my (@output) = read_text_file (“$test.output”); common_checks…
/* Test program for lib/kernel/list.c. Attempts to test the list functionality that is not sufficiently tested elsewhere in Pintos. This is not a test we…
# -*- perl -*- use strict; use warnings; use tests::tests; use tests::threads::mlfqs; our ($test); my (@output) = read_text_file (“$test.output”); common_checks (“run”, @output); @output = get_core_output…
# -*- perl -*- use strict; use warnings; use tests::tests; check_archive ({}); pass;
/* Verifies that overlapping memory mappings are disallowed. */ #include #include “tests/vm/sample.inc” #include “tests/lib.h” #include “tests/main.h” void test_main (void) { char *start = (char *)…
Tutorial Question 1 Question 1 a. Explain the historical definition of risk. b. What is a loss exposure? c. How does objective risk differ from…