finds.dev

devzizu/sales-management-system

Sales and inventory management system

View on GitHub

★ 4Cupdated Oct 2020

// the take

A university coursework project (University of Minho, Operating Systems course) implementing a sales/inventory management system as a set of Unix C programs communicating over named FIFOs, using signals and alarms instead of a real client-server stack or database. It's useful mainly as a worked example of raw POSIX IPC, not as something anyone would run in production.

Shows a genuine multi-process FIFO-based client-server setup with separate binaries (ag, sv, cv, ma, compactador) rather than threads, which forces you to actually deal with named pipe lifecycle, signal handling, and alarm-based timeouts. Persists state to flat files instead of pulling in a database, so the IPC and file-locking logic is fully visible with nothing hidden behind an ORM. Includes load-test shell scripts (10k/100k add-remove) that exercise concurrent access patterns.

No concurrency safety beyond whatever locking the course required — flat files as the persistence layer means no transactional guarantees, and it won't survive concurrent writers at any real scale. Single commit history and no activity since 2020, so any bugs in the signal/FIFO handling (a notoriously easy place to introduce races or leaks) are unfixed and unfixable upstream. Documentation is the course PDF statement, not a README explaining the actual protocol or file formats, so reusing any of this outside the assignment means reverse-engineering it from source.

We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
4
Forks
0
Language
C
Last commit
9 Oct 2020

// nearby

If sales-management-system isn't quite it.

All repos →