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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:53:24+00:00 2026-05-22T20:53:24+00:00

My model of how threads work is that some ThreadManager gives each thread a

  • 0

My model of how threads work is that some ThreadManager gives each thread a turn. When it’s a thread’s turn, it gets to execute a few lines of code.

To pause a thread, couldn’t one just have the ThreadManager (momentarily) stop allowing that thread to have a turn?

To abort a thread, couldn’t the ThreadManager just never give that thread another turn?

What’s the problem?

  • 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-22T20:53:25+00:00Added an answer on May 22, 2026 at 8:53 pm

    Quote from MSDN about pausing threads:

    You have no way of knowing what code a
    thread is executing when you suspend
    it. If you suspend a thread while it
    holds locks during a security
    permission evaluation, other threads
    in the AppDomain might be blocked. If
    you suspend a thread while it is
    executing a class constructor, other
    threads in the AppDomain that attempt
    to use that class are blocked.
    Deadlocks can occur very easily.

    Aborted thread can lead to unpredicted circumstances. There is a good article about this: http://www.bluebytesoftware.com/blog/2009/03/13/ManagedCodeAndAsynchronousExceptionHardening.aspx

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

Sidebar

Related Questions

I have an app that starts 10 threads. Each thread does it's work and
Reading a few threads ( common concurrency problems , volatile keyword , memory model
if (reader.is_lazy()) goto tldr; I have a background thread that does some I/O-intensive background
I have a program that spawns 3 worker threads that do some number crunching,
I have some code that will not run if I don't have a breakpoint.
Should model objects that go to the view be checked for null before going
In this code, I have an Entity Framework 4 model with a single Thing
I got assigned to work on some performance and random crashing issues of a
There are three thread models that are used in thread scheduling implementations usually done
On windows, each thread has a message queue, and each message queue will process

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.