Built idea · Oct 9, 2026
Fork Count
Paste a short fork/exec/wait/printf snippet and see every process it creates, every possible output interleaving, and which outputs are impossible, with auto-generated 'how many times is hello printed?' quizzes.
What it does
A practice tool for one of the trickiest topics in an operating systems course: what a C program prints when it creates child processes. Paste a short program using fork, wait, printf and pipes and it lists every possible output, or tells you whether a given output is possible and, if not, which line rules it out. A step-by-step process tree shows zombie and orphan processes, pipe deadlocks are explained, 37 examples are built in, and instructors can export exam questions with checked answers. Limitation: it handles only a small part of C, with no signals, threads, files or helper functions, and one writer and one reader per pipe.