CS 4375 - Operating Systems
Lab 1: Context Swapping
Author: Matthew S Montoya
Due: February 14, 2020
Objective
The objective for this project is to measure the cost (i.e., time) it takes for the OS to perform context swapping, exploring this process by running experiments, and concluding with a report detailing our findings.
Directory Structure
The directory structure used herein to manage documents and files is as follows:
At the top level, files describing the project meant for users to read: README.md
. The only other files that would be expected here is a .gitignore
file, listing files and/or folders which Git should ignore and a .git
file, containing git metadata. There are two subdirectories of this structure: /src
and /doc
.
All code related to this project is located in the /src
subdirectory.
All documentation related to this project is located in the /doc
subdirectory.
How To Compile & Run
- Using a Linux VM, navigate to the
/src
subdirectory via the terminal - Enter the following command to compile the program
sudo make
- Enter the following command to execute the program
./contextswap.o
Dependancies
- A Linux-based virtual machine OR
- A Linux-based machine (Note: This should be reserved for advanced users)
Warnings
- Although the dependencies call for the use of a virual machine, you may use a local Linux OS to compile & execute this code. This should be reserved for advanced users