From 9669adcab578d3d07fbe48a9a38a81118d25940b Mon Sep 17 00:00:00 2001 From: Markus Ewald Date: Sun, 27 Sep 2009 10:48:38 +0000 Subject: [PATCH] Improved documentation for the AffineThreadPool class git-svn-id: file:///srv/devel/repo-conversion/nusu@180 d2e56fa2-650e-0410-a79f-9358c0239efd --- Source/AffineThreadPool.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/AffineThreadPool.cs b/Source/AffineThreadPool.cs index 31d4234..324114c 100644 --- a/Source/AffineThreadPool.cs +++ b/Source/AffineThreadPool.cs @@ -32,8 +32,14 @@ namespace Nuclex.Support { /// Unlike the normal thread pool, the affine thread pool provides only as many /// threads as there are CPU cores available on the current platform. This makes /// it more suitable for tasks you want to spread across all available cpu cores - /// explicitely, however, it's not a good match if you just want to run a series - /// of tasks asynchronously. + /// explicitely. + /// + /// + /// However, it's not a good match if you want to run blocking or waiting tasks + /// inside the thread pool because the limited available threads will become + /// congested quickly. It is encouraged to use this class in parallel with + /// .NET's own thread pool, putting tasks that can block into the .NET thread + /// pool and task that perform pure processing into the affine thread pool. /// /// /// Implementation based on original code provided by Stephen Toub