logo

Crowdly

Simulate a smart home system. Sensors send sensor events to a central hub. Each...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Simulate a smart home system.

Sensors send sensor events to a central hub. Each sensor event has a timestamp,

severity, type and location. Notification worker threads consume events from

the central hub. If the sensor event severity is low the event is logged

(written on disk), if the  severity is

high the notification worker raises an alarm ( prints in the error console). In

main test the program with 5 sensors and 3 workers.  Solve the concurrent access to shared

resources using synchronization, wait and notify or explicit locks. Sensors

should continuously produce random events.

More questions like this

Want instant access to all verified answers on archive.curs.upb.ro?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!