Apps / Fork Count

Fork Count

Every process, pipe and possible output of a fork/wait/pipe C snippet, deadlocks included.

Open Fork Count ↗ Want one like this?

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.

Good to know

It handles only a small part of C, with no signals, threads, files or helper functions, and one writer and one reader per pipe.

More for learners

StepWise

100+ data structures and algorithms, every step narrated with its pseudocode line and variables; step back, share as a link, embed in Canvas.

LearnersEducators Open ↗

Digital Student Assistant

An AI teaching assistant that asks before it tells and won’t hand over homework. Yusuf Pisan’s data structures students at UW Bothell use it now.

EducatorsLearners Open ↗