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 885295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:53:18+00:00 2026-05-15T12:53:18+00:00

I have soft real-time .NET application run on W2008R2. I just realised that I

  • 0

I have soft real-time .NET application run on W2008R2.

I just realised that I cant explain how precisely threads are being scheduled.

And for my embarassement I dont know how it works down to OS threads at all.

So I will explain what I know and I’d appreciate if anyone could help me to fill the gaps and refer me to a simple description of algorithms which are used in .NET and Windows to schedule threads.

My code runs in managed threads. As I know managed threads (lets call them .NET threads) run in unmanaged threads (lets call them OS threads).

I know that threads are competing for CPU time and other resources. And that there is a piece of software – scheduler which monitors resources and threads and make the whole thing work.

Here I am not sure – is the scheduler just one for the OS or there is also .NET scheduler which schedules .NET threads? And if there are two schedulers then how they are working together?

And what are the rules to schedule a thread?

I want to narrow this question to a thread which does only arithmetic computations and no access to any devices so we are talking purely CPU consuming thread.

How scheduler factors .NET thread priority, process priority and a shared resource (CPU in this case) ?

  • 1 1 Answer
  • 1 View
  • 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-15T12:53:18+00:00Added an answer on May 15, 2026 at 12:53 pm

    The current versions of the .NET desktop runtime do have a 1:1 mapping between .NET threads and OS threads. This may change in future versions (and may not be true in other hosts; I know it’s not true in AutoCAD but I believe it’s true in SQL Server and MS Office).

    Note that the .NET thread pool is different than the OS thread pool (though it does make use of a single process-wide I/O Completion Port, which has some pool-like semantics).

    For full and complete answers, you’ll need two books: Windows Internals and Concurrent Programming on Windows. I recommend reading them in that order.

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

Sidebar

Related Questions

I have a soft real-time application project that needs extensive monitoring. JMX would seem
I have already asked a question regarding a simple fault-tolerant soft real-time web application
I have a computing map (with soft values ) that I am using to
I have a situation where I have a table that has a soft foreign
Lets say I have an android application that shows an image of a pillow.
I have some packages that have soft dependencies on other packages with a fall
I'd like to have a phone-like soft-keyboard that allows to input ONLY numbers. I
I'm currently working on a soft-input-panel for windows mobile and have run into a
I have an external button that SHOULD clear/hide the soft keyboard when it is
I have the following one-line text input that's broken into several soft line wraps.

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.