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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:48:47+00:00 2026-05-19T01:48:47+00:00

I need an explanation regarding some advice I got on this site. I’m doing

  • 0

I need an explanation regarding some advice I got on this site. I’m doing a newsletter sending app, and I have my mail sent in a seperate thread so the process doesn’t slow down the whole web site.
A couple of people advised me to set the threads IsBackground property to true.
I did this, but was also courious about what this does, so I googled a bit.
As it turns out, setting the IsBackground property to true indicates that “it’s okay if the process shuts down while this thread is still running.”.
Or as microsoft puts it “Any remaining background threads are stopped and do not complete.”

I don’t know if I got this the wrong way but, wouldn’t it be better to leave the IsBackground property to false, so that the spawned thread can complete its work regarding the main thread?

  • 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-19T01:48:48+00:00Added an answer on May 19, 2026 at 1:48 am

    If you set “IsBackground=true”, you are marking the thread as nonessential — so if you want your background job to complete even if the site goes down, I think your intuition is correct, leave it as “IsBackground=false”.

    This is not foolproof; the spawned thread is still a child of the main thread, so depending on how the site goes down, it can still bring down the entire process. If you really want to be sure that your job can run to completion no matter what happens to the site itself, you should think about extracting it into its own process, such as a WCF service.

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

Sidebar

Related Questions

need ask you about some help. I have web app running in Net 2.0.
i have a input tag which is non editable, but some times i need
Explanation: Say package A is always built first and then package B. I need
This is my first tryst with C#. The form that i have in mind
I was reading some posts about closures and saw this everywhere, but there is
I don't have a specific question here but I'm more looking for some guidance
I now need to design a chemistry periodic table. I will have a set
We manage a site for a medical charity. They have a number of links
I have a snippet to create a 'Like' button for our news site: <iframe
Need a function that takes a character as a parameter and returns true if

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.