Its small program regarding Producer consumer problem in operating system for computational devices.
Instruction to run the below program in windows OS:
1.save the program as rectangle.java in bin folder of jdk.
2.compile the program using ” javac “in cmd prompt
3.run the file using java command.
INPUT is: rectangle.java :
/* Program starts here: */