Improved documentation for the AffineThreadPool class

git-svn-id: file:///srv/devel/repo-conversion/nusu@180 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
Markus Ewald 2009-09-27 10:48:38 +00:00
parent 3c10f05589
commit 9669adcab5

View File

@ -32,8 +32,14 @@ namespace Nuclex.Support {
/// Unlike the normal thread pool, the affine thread pool provides only as many /// 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 /// 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 /// 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 /// explicitely.
/// of tasks asynchronously. /// </para>
/// <para>
/// 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.
/// </para> /// </para>
/// <para> /// <para>
/// Implementation based on original code provided by Stephen Toub /// Implementation based on original code provided by Stephen Toub