module 1 with definitions and problem implementation  with busy waiting and spin lock