Following exampel demonstrates how can we create a new thread using C#.
i. Create aThreadStart delegate.
ii. Create instance of Thread by passing this delegate as a parameter.
iii.Call the Thread.Start method (i.e. WorkerFunction).
using System.Threading; Thread newThread = new Thread(new ThreadStart(WorkerFunction)); newThread.Start(); |
The WorkerFunction could be defined as follows.
public void WorkerFunction() { try { // work } catch (Exception ex) { // catch exception } } |

December 9th, 2009 at 12:15 am
Hello
Thanks for this page, very interesting info.
December 23rd, 2009 at 9:30 pm
Greetings…
I just had the urge to wish yous all happy holidays.
Laters Ya’ll!!!
~ Tabea Russel ~
http://www.bible-knowledge.com/10-Commandments.html
December 30th, 2009 at 7:51 pm
Nice one
January 1st, 2010 at 10:36 am
Hello
Thank’s for this page, very useful info.
–
callaway curtain escaflowne , advanced sweater leaf , chef mirror usb , advanced rack braided , north drive tire