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

  • SEARCH
  • Home
  • 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 6550871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:16:05+00:00 2026-05-25T12:16:05+00:00

Can we re-purpose the completion port thread (for async I/O operation) as worker thread

  • 0

Can we re-purpose the completion port thread (for async I/O operation) as worker thread in CLR process ThreadPool ?

If this is naïve then can someone suggest me how to maximize the use of thread pool threads in order to reduce number of work item stacked in the worker queue.

  • 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-25T12:16:06+00:00Added an answer on May 25, 2026 at 12:16 pm

    The IOCP threads are already sorta ‘workers’ – they take input from a queue and act on the received items. If you wish to avoid using another thread pool for processing items other than ‘normal’ IOCP completion objects rx from the network drivers, there is nothing stopping you from ‘manually’ queueing up objects to the IOCP queue that ask the IOCP pool threads to perform other actions. I forget the actual APIs now, but AFAIK there should be no problem.

    I remember using such a mechanism for server tuning – reducing the number of IOCP threads by queueing an item that instructed the receiving IOCP pool thread to terminate.

    That said, I’m not sure that such a mechansim will improve throughput significantly – the work has to be done somewhere and it may be that avoiding an extra thread pool would not help much. Empirically, as a general-purpose inter-thread comms mechanism, an IOCP queue has a worse performance than Windows message queues, (useless for thread pools anyway since only one thread can wait), and user-space CS/semaphore-based P-C queues.

    Rgds,
    Martin

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

Sidebar

Related Questions

Can someone help me identify what the purpose of this unidentified syntax is. It
Can anyone explain to me the purpose of ungetch? This is from K&R chapter
If we can't decode the MD5 hash string, then what is the purpose of
I have seen this macro defined before but never really knew its purpose. Can
Can anyone define WCF? What is the purpose of WCF? What are some good
To have a general-purpose documentation system that can extract inline documentation of multiple languages,
From the MSDN is not really clear its purpose. Can it be used to
User Controls -- Do they serve a special purpose? As far as I can
GAE comes with an inbuilt jetty webserver for testing purpose.Can it be configured to
For the caching purpose I can't have url like /users/2/index?month=2009-02 . The problem with

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.