C# threading question
Posted
by MusiGenesis
on Stack Overflow
See other posts from Stack Overflow
or by MusiGenesis
Published on 2010-03-15T21:39:59Z
Indexed on
2010/03/15
21:49 UTC
Read the original article
Hit count: 371
Is there any essential difference between this code:
ThreadStart starter = new ThreadStart(SomeMethod);
starter.Invoke();
and this?
ThreadStart starter = new ThreadStart(SomeMethod);
Thread th = new Thread(starter);
th.Start();
Or does the first invoke the method on the current thread while the second invokes it on a new thread?
© Stack Overflow or respective owner