creating threads in C#

BobLewiston

In Runtime
Messages
182
Can someone please break down a simple statement for a relative newbie?

Code:
Thread firstThread = new Thread (new ThreadStart (Method1));

In other words, what is happening at each stage here:

Code:
new ThreadStart (Method1)

Code:
new Thread (new ThreadStart (Method1))

Code:
Thread firstThread = new Thread (new ThreadStart (Method1));

Thanks for any help you can give.
 
Code:
new ThreadStart (Method1)
a new instance of ThreadStart, with Method1 being passed to it

Code:
new Thread (new ThreadStart (Method1))
a new thread with what I said before being passed to it

Code:
Thread firstThread = new Thread (new ThreadStart (Method1));
a new instance of a thread called first thread, with what I said before being passed to it
 
I'd be glad to, but I don't see any picture of a double scale, on the side or anywhere else. But thanks.
 
Back
Top Bottom