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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:55:44+00:00 2026-06-04T03:55:44+00:00

I want a single thread of business process to run continuously in .net .

  • 0

I want a single thread of business process to run continuously in .net. For which can I am thinking of making a window service that will run continuously.
If this service fails i want web based control for administrator.

Problem 1: If this service fails how can I check this through web based application(I can check by SC command using command prompt but how to move this to web based environment).

Problem 2: I m thinking of making service run continuously by using while(true) loop. Is this is correct way to address this problem.

Problem 3: How can I make sure only one instance run at time?

  • 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-06-04T03:55:45+00:00Added an answer on June 4, 2026 at 3:55 am

    Problem 1: see here

    Problem 2: Not a great idea. What is the service doing? Usually it will fire on an event like a Filesystem Watcher, or sleep for a while and wake to perform necessary tasks.

    Problem 3: A Windows service is not like other executables in that there will only be one copy of the service if you only install one. You start and stop it as required.

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

Sidebar

Related Questions

Thread class has run method to implement the business logic that could be executed
Is there any thread library which can parse through code and find blocks of
I want to call a Business layer method from a Windows service (done using
We are developing a large applications which are related to business. You can find
Is the standard MySQL JDBC driver thread-safe? Specifically I want to use a single
Let's say I have a 4-core CPU, and I want to run some process
I have a list of sockets that belongs to a single thread. But I
I have an object that have to be used by only a single Thread
I want to ask if a System.Timers.Timer instance runs on a single thread, a
I want to write a module that connects to a remote Service. The module

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.