Systems Programming in C and Unix Environments
96 study materials · 8 sections
This course provides a comprehensive exploration of the interface between software and hardware, focusing on the C programming language and the Unix/POSIX operating system model. Students learn to manage low-level memory, navigate file systems, and orchestrate process lifecycles through system calls. The curriculum also covers network communication via sockets and the complexities of concurrent execution using multithreading. By the end of the course, students will be proficient in building robust, high-performance systems-level applications.
Course Sections
Introduction to Systems Programming and C
Key concepts: Systems Programming vs. Operating Systems · GCC Compilation Process · Object Lifetimes (Static, Stack, Heap) · C Type System and Casting · Undefined Behavior
An introduction to the role of systems programming, the GCC compilation process, and the fundamental type system of C.
Memory Management, Objects, and Pointers
Key concepts: Pointer Arithmetic and Offsets · Null-terminated Strings · Pass-by-reference · Dereferencing and Address-of Operators · Void Pointers
Deep dive into C's memory model, pointer arithmetic, and the handling of arrays and strings.
The C Preprocessor and Build Systems
Key concepts: Preprocessor Directives (#include, #define) · Macro Pitfalls · Conditional Compilation · Header Files vs. Source Files · Makefiles
Exploration of source-to-source transformation using the preprocessor and automating compilation with Make.
File Systems and POSIX I/O Streams
Key concepts: POSIX File Model · File Descriptors (STDIN/STDOUT/STDERR) · System Calls (open, read, write, close) · Vectored I/O (writev) · i-nodes and d-nodes
Understanding the POSIX file model and using system calls for low-level I/O operations.
Processes and Inter-Process Communication
Key concepts: Process Lifecycle · fork(), exec(), wait() · Zombie and Orphan Processes · Signal Handling · Pipes
Managing the process lifecycle using fork, exec, and wait, and understanding process states.
Network Programming and Sockets
Key concepts: Layered Network Model · IP Addressing (IPv4/IPv6) · Socket API · TCP vs. UDP · Network Address Translation (NAT)
The layered network model and implementing communication between processes over a network.
Concurrency and Multithreading
Key concepts: POSIX Threads (pthreads) · Shared Mutable Memory · Race Conditions and Data Races · Mutexes and Locks · Atomic Operations
Managing multiple execution threads within a single process and ensuring thread safety.
Exam Preparation and Review
Key concepts: C Memory Model Review · POSIX System Call Synthesis · Signal Disposition · Socket Management Pitfalls
Synthesis of course materials for midterm and final examinations.
Source Materials
Study Systems Programming in C and Unix Environments on Lykke
This course page is free to open: signed out, you can read its first two sections, and signing in, on any plan, opens the rest. The free Lykke Chrome extension syncs your own Canvas courses, so ChatGPT, Claude and Muse can answer from your classes and deadlines. It only reads Canvas.
Add the free extensionSign in to open every section