GOAT EngineerPreparing your learning space…

System Design · Interactive workshop

The system call and I/O workbench

Build it. Run it. Follow the bytes.

A system call asks the kernel to perform a privileged operation. A read that cannot finish yet can block its caller, making that work ineligible for CPU time until completion. The device can remain busy while the CPU runs another ready task.

The canvas runs in your browser and needs JavaScript. You can read the model below and read the accompanying Library lesson without JavaScript.

What this machine models

Model os-syscalls-1 follows three requests with one CPU tick before a device read and one after it. Each admitted wave overlaps on one declared batch device and completes 2, 4 or 6 teaching ticks after its last issue step. Blocking workers retain worker slots while waiting; completion mode releases a slot for the next issue step.

Each admitted read acquires one modeled handle. Success, error and cancellation release it only when cleanup is configured. The handle table holds 1 to 3 entries. A leak remains visible after request termination.

The device can be paused: admitted requests stay blocked with their handles owned until a new run resumes it. The model does not execute a real system call, predict disk latency, emulate an event loop or model kernel buffering. Blocked means waiting for this modeled device completion, not using CPU. Temporary state clears on reload, and no grade is saved.

By GOAT Engineer. Explore System Design · Privacy Policy · Contact.