C
How a program really works underneath: pointers, recursion, memory you manage by hand, linked lists and files, then a full tour of the operating system: system calls, processes, exec, pipes, signals, threads, deadlock, and the scheduling and memory algorithms behind them, ending with a shell of your own.
Chapters
- Variables (Integers)
- Variables (Floats)
- Comments
- Recap: Road Trip Calculator
- If/Else
- If/Else If/Else
- For Loops
- Recap: FizzBuzz
- While Loops
- Functions
- Input
- Do-While Loops
- Recap: Mini Calculator
- Operators
- Booleans
- The Ternary Operator
- Strings
- Characters and ASCII
- Recap: Password Validator
- Arrays
- Looping over Arrays
- Break and Continue
- Recap: Grade Analyzer
- Recursion
- Recursion with Arrays
- Scope and static
- Recap: The Call Counter
- Nested Loops
- 2D Arrays
- Pointers
- Pointers and Functions
- Recap: Matrix Stats
- Pointers and Arrays
- String Functions
- Reading Until the End of Input
- Splitting a Line with strtok
- Text to Number
- Recap: The Operator Console
- Structs
- Structs and Pointers
- Recap: Contact Book
- Dynamic Memory
- Growing Memory with realloc
- Linked List
- Linked List: Insert and Delete
- Enums
- Typedef
- Recap: Task Manager
- Function Pointers
- Sorting with qsort
- Preprocessor
- File I/O
- Bitwise Operators
- Reading Compiler Errors
- Recap: Config & Permissions
- OS: Processes
- OS: System Calls
- OS: open, read and write
- OS: Moving Around a File with lseek
- OS: When a System Call Fails
- OS: File Information with stat
- OS: Reading a Directory
- Recap: The Tape Library Console
- OS: Fork
- OS: Exit Status and waitpid
- OS: Running Another Program with exec
- OS: Zombies and Orphans
- OS: Many Children at Once
- OS: Environment Variables
- Recap: The Morning Checks
- OS: Pipes
- OS: Redirecting with dup2
- OS: Building a Pipeline
- OS: Named Pipes
- OS: Shared Memory with mmap
- Recap: The Relay Station
- OS: Signals
- OS: sigaction and Blocking Signals
- OS: Timers with alarm
- OS: SIGCHLD
- Recap: The Deadline
- OS: Threads
- OS: Giving Data to Threads
- OS: Semaphores
- OS: Semaphore Signalling
- OS: Condition Variables
- OS: Producer and Consumer
- OS: Deadlock
- OS: The Banker's Algorithm
- Recap: Parallel Word Counter
- OS: Scheduling with FCFS
- OS: Shortest Job First
- OS: Round Robin
- OS: Priority Scheduling
- Recap: The Scheduler Contest
- OS: Paging
- OS: Page Replacement with FIFO
- OS: Page Replacement with LRU
- OS: Disk Scheduling
- Recap: The Virtual Memory
- Project: Student Database
- Project: Mini Shell
- Project: Library Catalog
- Project: A Shell with Pipes
- Project: Job Scheduler