Class WorkerThread
A thread that is created by ThreadPool
Constructors
Name | Description |
---|---|
this
(id, pool)
|
Constructor |
Methods
Name | Description |
---|---|
isRunning
()
|
Checks if thread is running |
join
()
|
Waits for the thread to terminate |
sleep
(msec)
|
Wait for specified amout of milliseconds |
start
()
|
Starts the thread |
terminate
()
|
Stops the thread immediately. This functionality is unsafe, use with care |