title: right way to create thread in ASP.NET web application
body: <p>i'm creating asmx web service and have to create thread to do background IO to refresh system data. What is the right way? I'm not interested to get any results to creating thread. I just want the ASP.NET worker thread to create a thread that does it's loading and in the end makes one assign (I think assign _alldata = newData is atomic where both instances of my own big structure class SystemData) so the worker thread that created the the new thread can propagate instantly.</p>
  
  <p>I read an article <a href="http://msdn.microsoft.com/fi-fi/magazine/cc164128%28en-us%29.aspx#S2" rel="noreferrer">http://msdn.microsoft.com/fi-fi/magazine/cc164128%28en-us%29.aspx#S2</a> which suggest to use non-threadpool thread. The article however was about different  / more complex scenario and didn't help me so much.</p>
  
  <p>Thanks: Matti</p>
  
  <p>PS. I have asked this question also in <a href="https://stackoverflow.com/questions/1820770/what-is-the-right-way-to-spawn-thread-for-database-io-in-asmx-web-service">what is the right way to spawn thread for database IO in asmx web service?</a> but that was too complex with multiple questions. </p>