WorkerThread is an abstract base class extended by the Philosopher class to implement thread behavior.
Assembly: DiningPhilosophers (in DiningPhilosophers.exe) Version: DCF34 r12844 DCF_3_4_52_20211007 NetFramework
public abstract class WorkerThread
Thetype exposes the following members.
Constructor with optional data.
The data passed to this on construction or null.
Return true if the worker thread is alive.
When true, the philosopher was requested to stop eating before finishing his food.
Join this thread with optional timeout.
To be implemented by derived threads
Start the worker thread
Stop the current thread by setting a flag. We rely on the thread to stop.