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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:07:28+00:00 2026-05-15T16:07:28+00:00

First I’m going to explain what I’m trying to do, before asking the question

  • 0

First I’m going to explain what I’m trying to do, before asking the question directly. Basically, there is a Windows Service running on a specific machine, let’s call it M1. This Windows Service runs a set of tasks using threads (1 thread for each partition of tasks). I need to program a functionality that will let the user stop/suspend/restart a partition from the administration panel of the application. My solutions consists in accessing those threads by their id/name. Once I have the thread I can do the right operation on it. Is it the right approach?

If yes, how do we do that? The threads are running in M1 and I need to access them from a remote computer (situated in the same network area). Is it even possible?

Thank you. Don’t hesitate to ask for more explanations if needed.

  • 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-15T16:07:29+00:00Added an answer on May 15, 2026 at 4:07 pm

    Giving direct control over thread management to a remote process is a hazardous way to solve this. You could set up a thread that listens for requests to suspend, etc., and manipulate the threads on behalf of the requester. But this can cause endless problems since you don’t know what state the thread is in when you suspend it. In particular, it could have locks held, or be in the middle of a database transaction.

    If tasks are short-lived, have each thread request work from a boss whenever it completes its current chore. To suspend a partition, tell the boss (via TCP, web services, or whatever) not to give the partition’s thread any more work until further notice.

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

Sidebar

Related Questions

First let me phrase the proper question: Q: There is a file containing more
First, my question might sound like a duplicate, but I have been going through
First of all there is a question with the same title here on SO
first sorry if its a stupid question but im lost a bit. So when
First sorry for my english. I am currently trying to develop a JAVA webservice
First of all, I am sorry if this question doesn't belong to SO since
first question asked, so I'll get straight to it. I've got some C code
First of all, some background: I'm trying to get in a list of integers
First, my computer is windows 7 64bit, with xampp(apache, php, mysql), vmware server, java
First, I am a SQL noob, second if there is a better solution that

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.