Thread is a built in class in .NET to allow threading.
firstThread is a new thread you are creating.
new Thread (new ThreadStart (Method1))
Creates a new instance of the thread.The code that is to be executed is method 'Method1'. The new thread cannot directly run this method so we have to create a delegate.
new ThreadStart (Method1)
ThreadStart is that delegate, we create a new instance of it and supply it to the thread.
After this you have to call Start to run the thread.
You might want to check out
this.
Reputation Points: 72
Solved Threads: 15
Junior Poster in Training
Offline 64 posts
since Jan 2008