IC2 lab
Everything on the site to practice IC2 with nothing to install: the C playground for the practical part and the simulators for the theory, in syllabus order. Each card says which topic it covers and what it helps you see.
sergio@learns:~/lab/ic2$ ls --by-topic
C programming and Linuxthe practical part
- xccCWith pointers, processes and threads, and prepared input
- Topic
- C from scratch, pointers, functions, processes and threads
- Helps you see
- Seeing what fork and pthread do without setting up Linux, with prepared input; the practical mock exam uses this same playground.
$ gcc main.c -o main && ./main - C · x86-64Pointer and memory visualizerYour C program step by step: every variable with its address, the pointer arrows, what malloc reserves and memory errors explained
- Topic
- Pointers, structs and dynamic memory in C
- Helps you see
- What you draw on paper with boxes and arrows: the address of every variable, where each pointer points, what malloc reserves and what a free leaves dangling, with memory errors explained.
$ memory --example swapReview the theory: Pointers, structs and dynamic memory in C
Networksmidterm 1
- AND · SVGIPv4 subnetsThe bitwise AND of IP and mask: network, broadcast, host range and whether two IPs share a network
- Topic
- IP addressing and subnets
- Helps you see
- The bitwise AND you do in your head on paper: where the network, broadcast and hosts come from, which helps with mask questions.
$ ipcalc 10.110.7.24/24Review the theory: IP addressing and subnets - Capas · SVGThe journey of a packetYour assignment goes down TCP/IP or OSI header by header and travels through switch and routers to the server
- Topic
- OSI and TCP/IP models
- Helps you see
- How each header goes inside the previous one and what each device looks at, the idea behind comparing TCP/IP with OSI.
$ send --data 3000 --mss 1460Review the theory: OSI and TCP/IP models
Operating systemsmidterm 2
- Gantt · SVGCPU schedulingFCFS, SJF, SRTF and Round Robin with the Gantt chart, the ready queue and every decision explained
- Topic
- CPU scheduling
- Helps you see
- Why the operating system picks each process at each moment, what lies behind a Gantt chart like the exam one.
$ schedule --algorithm rr --quantum 3Review the theory: CPU scheduling - Traza · SVGPage replacementFIFO, LRU and optimal with the frame trace, every victim explained and Belady’s anomaly
- Topic
- Virtual memory
- Helps you see
- Which page leaves each frame and why, so you can do FIFO, LRU and optimal traces without getting lost.
$ paging --algorithm lru --frames 3Review the theory: Virtual memory

IC2 practical mock exam — flowcharts, fork and threads in C (and the screenshots you can’t leave out)