This project solve simple h2o problem in C, it creates 2 processes for generating atoms (h, o). Those processes creating next processes - atoms.
When 2 atoms of Hydrogen and 1 atom of Oxygen are created, the bond can start, other atoms must wait until bond is completed. All atoms then waits until all of them are turned into h2o and program hangs.
This problem is solved with semaphores and barrier technique. I've used The Little Book of Semaphores book from Allen B. Downey.
42/42 points