The code depicts a producer producing product(shown with a number) and consumer consuming it only after the producer manufactures.