Skip to content

Creating threads

Bob Lewiston

Asked Jul 17, 2009, 10:11 AM EDT2 answers
Share
LinkedInX
Can someone please break down a simple statement for a relative newbie?
 
Thread firstThread = new Thread (new ThreadStart (Method1));
 
In other words, what is happening at each stage here:
 
new ThreadStart (Method1)
new Thread (new ThreadStart (Method1))
Thread firstThread = new Thread (new ThreadStart (Method1));
 
Thanks for any help you can give.

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    This is a cross post of http://www.daniweb.com/forums/thread204868.html
    0
  • 0
    scottk:
     
    >This is a crosspost of http://www.daniweb.com/forums/thread204868.html
     
    Yes, it is. So what?
     
    Posting to forums at different websites is not the same as posting to more than one forum at a single website. The idea behind not cross-posting to multiple forums at a single website is to ensure that posts are directed appropriately. Posting to forums with similar topics at different websites is in no way directing posts inappropriately.
     
    The purpose of posting questions at more than one website is to maximize the chance of getting answers, of course! And why not? Any given question is usually answered at only a minority of forums. But by posting my questions to forums at multiple websites, several different people have responded to each and every one of my questions. They've each been helpful and brought something to the discussion that others at other websites had not thought of. So what does it matter if such helpful people are distributed over several websites?

     
    0