Build a Molecule

This problem simulated the creation of water molecule by grouping three threads representing Hydrogen and Oxygen atoms.

We'll cover the following...

Problem Statement

Suppose we have a machine that creates molecules by combining atoms. We are creating water molecules by joining one Oxygen and two Hydrogen atoms. The atoms are represented by threads. The machine will wait for the required atoms (threads), ...