CPTS 360
Systems Programming, Fall 2024
Overview
This course aims to equip students with the skills to craft system software, utilize system capabilities, and construct small-to-medium scale software systems. Throughout this course, students will (a) develop and execute C programs, (b) comprehend the fundamental methods of creating applications through libraries and interfacing with services, (c) understand memory layout, program, and process representations, and (d) implement Unix/Linux abstractions for memory management, processes, process control, inter-process communication, scheduling, file systems, and networks.
Instructor: Monowar Hasan
Email: monowar.hasan@wsu.edu
Class time: Tuesday, Thursday 9:10-10:25 AM
Class Location: Pullman Campus, Carpenter Hall 102
Office Hours (EME B53): Tuesday Noon-1 PM, Thursday 11 AM-noon, or by appointment
Course Staff (TA): Bruno Sanchez Parra (bruno.sanchezparra@wsu.edu) Matthew Bruggeman (matthew.bruggeman@wsu.edu) Tamim Ahmed (tamim.ahmed@wsu.edu) YuQun Song (yuqun.song@wsu.edu)
TA Office Hours: Monday and Wednesday, 10:30-11:30 AM,
Dana 343Owens Library 543 (Bruno) Monday and Wednesday, 11:15 AM-1:00 PM, Sloan 340 (Matthew) Friday 11 AM-Noon, Sloan 341 (Tamim) Friday 1 PM-2 PM, Sloan 340 (YuQun)
Important: To better prepare yourself for office hours and posting Teams interactions, read carefully the excellent guides from Gabriel Parmer:
Acknowledgment
This course uses materials from Randal E. Bryant, David R. O'Hallaron, Remzi Arpaci-Dusseau, Andrea Arpaci-Dusseau, Kung-Chi Wang, Bob Lewis, Youjip Won, Tianyin Xu, Mathias Payer, Sanidhya Kashyap, Peter Reiher, and Hugh Lauer.
Course Syllabus
The course syllabus is available here.
Textbook
[CSAPP] Computer Systems: A Programmer's Perspective, 3rd edition, by Randal E. Bryant and David R. O'Hallaron.
[LKMPG] The Linux Kernel Module Programming Guide, Peter Jay Salzman, Michael Burian, Ori Pomerantz, Bob Mottram, Jim Huang. This book is helpful for Lab 3.
Schedule and Class Materials
Note: The lectures and code files are hosted on the WSU OneDrive cloud. You need WSU credentials to access the materials.
CSAPP 6.4.5-end, 6.5, 6.6.2, 6.6.3
Self-study:
6.4.2 (Conflict misses)
Run mm.c
and analyze the results
Sample Exams
Sample Final
Exam Solutions
Mid-term solution
Programming Assignments
We will have five programming assignments in this course. The assignments must be completed individually.
PA 0: C skill rehash: Design a Unix filesystem tree simulator using C Tree data structures
PA 1: Simulating a cache memory system
PA 2: Implement various CPU schedulers (first-come-first-serve, round-robin, shortest-job-first)
PA 3: Basic kernel-level programming on Linux
PA 4: Develop a web proxy that interacts with the browser and the Internet
We strongly recommend using a Linux machine (or VM) to complete the labs, as we will use a Linux environment to grade your submissions. Some labs (e.g., Lab 3) will not work without a Linux environment. Check the following links for details about setting up virtual machines on your systems.
Apple Silicon Mac (from scratch, prebuild-images)
Note: for Windows systems, WSL is not recommended. You must install a standalone VM image.
Programming Assignment Submission
We will use GitHub Classroom to deliver programming assignments. This way, you can better manage your assignments using a widely-used version control system, Git.
For information on version control and how to use Git, see:
To learn more about GitHub workflow, see GitHub Quickstart.
Are you using GitHub on your machine for the first time?
If you are using GitHub for the first time on your development machine, you need to authenticate your account — one way to do this is by using GitHub CLI. Install GitHub CLI using the instructions given here. Then run the following command and follow the prompts to authenticate your system: gh auth login
.
Submission Workflow
For each lab, you will find a GitHub Classroom link on Canvas. Once you click the link and log into your GitHub account, find your name in the student list and click it to accept the assignment. Please double-check your name and email address before accepting the assignment. If you accidentally choose another student's name, please contact the instructor.
A repo named
wsu-cpts360-term/paX-name
will be automatically created for you and hosted on GitHub with the starter code.You can then "clone" your repository onto your development machine. You will complete assignments on your development computer and then "push" your work to the GitHub-hosted remote repository for us to grade.
Final submission:
Copy the URL of your GitHub repository on the corresponding assignment section on Canvas.
If you have any questions about setting up GitHub, please contact the TA.
Useful Resources
GDB Tutorial 1, Tutorial 2
GitHub Classroom: Tutorial 1, Tutorial 2
Got stuck? Questions about anything? Feel free to contact the instructor on Teams (preferred) or via email: monowar.hasan@wsu.edu!
Last updated