WorkerThread is an abstract base class extended by the Philosopher class to implement thread behavior.
Inheritance Hierarchy
LaurelBridge.DCF.Examples.DiningPhilosophersWorkerThread
LaurelBridge.DCF.Examples.DiningPhilosophersPhilosopher
Namespace: LaurelBridge.DCF.Examples.DiningPhilosophers
Assembly: DiningPhilosophers (in DiningPhilosophers.exe) Version: DCF34 r11538 DCF_3_4_24_20190319
Syntax
C#
public abstract class WorkerThread
The WorkerThread type exposes the following members.
Constructors
Name | Description | |
---|---|---|
WorkerThread |
Constructor with optional data.
|
Properties
Name | Description | |
---|---|---|
Data |
The data passed to this on construction or null.
| |
IsAlive |
Return true if the worker thread is alive.
|
Methods
Name | Description | |
---|---|---|
Join |
Join this thread with optional timeout.
| |
Run |
To be implemented by derived threads
| |
Start |
Start the worker thread
| |
Stop |
Stop the current thread. Abort causes
a ThreadAbortException to be raised within
the thread
|
See Also