diff --git a/Docs/SmartThreadPool.html b/Docs/SmartThreadPool.html index e3733b0..a7d3a8b 100644 --- a/Docs/SmartThreadPool.html +++ b/Docs/SmartThreadPool.html @@ -220,7 +220,7 @@ smartThreadPool.QueueWorkItem(System.IO.File.Copy,
I decided to add a new thread every time a new work item is queued and all the threads in the pool are busy. The formula for adding a new thread can be summarized to:
-(InUseThreads + WaitingCallbacks) > WorkerThreads
+_currentWorkItemsCount > WorkerThreads
where WorkerThreads is the current number of threads in the pool, InUseThreads is the number of threads in the pool that are currently working on a work item, and WaitingCallbacks is the number of waiting work items. (Thanks to jrshute for the comment.)
STPStartInfo contains a property that defines the priority in which the threads are started in the SmartThreadPool. Use it if you know what you are doing. Playing with threads priority may end up with dead locks, live lock, and days locked :-(.
STPStartInfo contains a property that defines the priority in which the threads are started in the SmartThreadPool. Use it if you know what you are doing. Playing with threads priority may end up with dead locks, live lock, and days locked
.
MaxThreads/MinThreads/Concurrency can be changed at run time.