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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:53:40+00:00 2026-05-23T02:53:40+00:00

If I spin up a new thread in C#, can I just fire and

  • 0

If I spin up a new thread in C#, can I just fire and forget without worrying about the thread being joined?

void DoSomething()
{
  var worker = new Worker();
  var start = new ThreadStart(worker.DoStuff);
  var thread = new Thread(start);
  thread.Start();

  // do something else...
  // who knows how long it'll take...

  // exit without calling thread.Join()

}

Are there consequences to writing this code?

  • 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-23T02:53:41+00:00Added an answer on May 23, 2026 at 2:53 am

    Yes, it is safe insofar as the thread will continue until completion by itself, you do not need to have a reference to the Thread object to keep it alive, nor will the behavior of the thread change in any way.

    The only thing you give up is the ability to later on join on the thread, or check its status, but it is absolutely safe to fire and forget threads.

    However, if you fire and forget a thread set as a background thread, that thread might not run to completion if the program exits before the thread completes.

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

Sidebar

Related Questions

I spin off a new thread that reads data from a database. Every X
I recently came across spin.js . And I just realized how much can be
I need to find a way to spin off a thread from a static
I have a WCF service method that's running in a worker thread I spin
I think this is a new spin on an old question, but I'm completely
what would happen if I spin off a thread to execute a long-running process
Do I need to protect Thread objects from the Garbage Collector? What about the
Is there a consistent way across browsers to hide the new spin boxes that
Joe Duffy's article about ReaderWriterLockSlim does not fill me with confidence! Introducing the new
I'm new to the MVC framework and have just run through the NerdDinner sample

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.