Programming notes | chapters 1-12

120 editable diagrams

Clear visual explanations of memory, control flow, operating systems, networks, concurrency, and programming languages. Open any diagram at full size, or save its SVG and edit it in Inkscape.

1. Foundations / 10 diagramsRead chapter

2. Pascal and data structures / 10 diagramsRead chapter

3. Assembly / 10 diagramsRead chapter

4. C / 10 diagramsRead chapter

5. Operating-system services / 10 diagramsRead chapter

6. Networks / 10 diagramsRead chapter

7. Concurrency / 12 diagramsRead chapter

Reserve the buffer resource before taking its mutex
Notes 7.2.1

Reserve the buffer resource before taking its mutex

Correct producer/consumer ordering permits progress; waiting for space while holding the mutex deadlocks a full buffer.

8. Inside the kernel / 12 diagramsRead chapter

Signal delivery temporarily redirects user execution
Notes 8.2.3

Signal delivery temporarily redirects user execution

The kernel saves user context in a signal frame, runs the handler and restores the interrupted context through sigreturn.

9. Programming paradigms / 6 diagramsRead chapter

10. C++ and object lifetimes / 12 diagramsRead chapter

11. Functional and logic programming / 12 diagramsRead chapter

12. Tcl and execution strategies / 6 diagramsRead chapter