/H2O_problem_solution

H2O problem solution with posix semaphores

Primary LanguageC

H2O_problem_solution

My 2nd project in Operating systems
H2O problem solution with posix semaphores

run:
make
./h2o N GH GO B

N - number of molecules to create
GH - max random waiting time for Hydrogen atoms
GO - max random waiting time for Oxygen atoms
B - max random waiting time when molecule is bonding

For example:
./h2o 10 10 10 10

http://www.fit.vutbr.cz/study/courses/IOS/public/Lab/projekty/projekt2/projekt2.html