Java real time program

Order Description

Hi, i need a simple java real time program below are the requirement.

There are 3 rooms, a sensor need to check the room CO2 level (random generate for example 1 to 10). if CO2 level is below 5, just print room is safe and the duration taken for it to complete check.

If the value is above 5, Print activate emergency protocol. print countdown for water sprinkler in 5 second. after that re-chck the room CO2 level, if safe back to normal process.


its simple and i need it urgently 3 Class file : 1 main class, 1 for sensor, 1 for emergency protocol.

Number of real time thread will be: 1 For Room 1, 1 for room2, 1 for room3, 1 for sensor