Commit Graph

4 Commits

Author SHA1 Message Date
cae865cd92 Fixed test 10, added exercices: death_monitor and philosophers_args 2025-10-12 01:24:40 +01:00
69d8209b12 updated death monitor 2025-10-09 21:24:47 +01:00
9349239c84 Added struct to death_monitor.c 2025-10-09 20:51:02 +01:00
4584560f1d Added boilerplate for death_monitor.c, need a refactor.
- 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.
2025-10-09 20:50:32 +01:00