Chain smoker problem and Sleeping barber problem implementation for IPC problems