* Chapter 7 Monitors * Structure of a Monitor in JBACI monitor . . begin end * General Remarks The variables declared in a monitor can only be accessed within the monitor…