- ATM the code have a struct that contains all workers threads, mutexes and last_updated values. I need to try malloc a `WorkerState` struct and pass it to each worker thread. - Need to create a monitor thread that will iterate all workers values and watch if the last_activity_time of a worker is less than 3 seconds. If not, the monitor thread will declare it as dead. |
||
|---|---|---|
| .. | ||
| deadlock_demo.c | ||
| death_monitor.c | ||
| limited_resources.c | ||
| mutex_basics.c | ||
| precise_timing.c | ||
| producer_consumer.c | ||
| simple_philosophers.c | ||
| simple_philosophers.h | ||
| state_monitor.c | ||
| thread_basics.c | ||