Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 903363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:51:57+00:00 2026-05-15T15:51:57+00:00

OK, as I understand it, the .NET Threadpool maintains a number of background threads

  • 0

OK, as I understand it, the .NET Threadpool maintains a number of background threads ready to be used for tasks of some kind.

The Get/SetMinThreads and Get/SetMaxThreads methods contain two parameters that can be returned or adjusted.

According to MSDN the two parameters indicate the number of worker threads and the number of threads used for async IO operations.

What type of operations use these specific type of thread?

Worker threads:

  1. QueueUserWorkItem I presume.
  2. Anything else?

Async IO threads:

  1. Used when calling Beginxxx, Endxxx on file streams for example? (Or network, serial port, etc.)
  2. Anything else?

Thanks for any clarification, or a good link on the subject.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T15:51:57+00:00Added an answer on May 15, 2026 at 3:51 pm

    Yes, QUWI but also a delegate type’s BeginInvoke() method. And employed by a few classes, BackgroundWorker is the best known example. Which under the hood merely uses delegate’s BeginInvoke().

    I/O completion threads are a very low-level Windows feature to get code to run quickly when an I/O request completes. Most visible from the ReadFileEx() function’s last argument, there are others. The managed equivalent is exposed through ThreadPool.BindHandle().

    It is the job of .NET classes to get that right. Just a few use it: FileStream, PipeStream, FileSystemWatcher, Socket, SerialPort’s internal worker thread and some WCF channel support classes.

    I’m personally not a big fan of getting these config details exposed in the API, especially the I/O completion thread ones. It’s a bit of a cop-out by the BCL team, some FUD on their end. These settings affect the entire program, the defaults are already quite generous. Tinkering with them is roughly equivalent to calling GC.Collect(). If you ever manage to find a good reason to change them, that better be when stuck in a hellhole with only one hour left to catch the plane back home. Been there 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've never used any of the .NET generics in my work, but I understand
I want to create a fixed arbitrary size ThreadPool in .NET - I understand
As I understand it, C#/.Net generics support some degree of reification. So, if I
I am trying to understand what ThreadPool does, I have this .NET example: class
I understand that .NET FileStream's Flush method only writes the current buffer to disk,
I'm using the MVC beta to write a simple application to understand ASP.Net MVC.
I understand how Lucene.net can work for text indexing. Will I be able to
If I understand correctly the .net runtime will always clean up after me. So
C# .NET 3.5. I'm trying to understand the intrinsic limitation of the C# Action
I understand that IronPython is an implementation of Python on the .NET platform just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.