Running a function using thread continuously in c#
hi all,
want run function continuously using thread in windows c# application,but should not affect performance , no memory leaks.
please me in solving issue.provid me solutions effectively.
thanks,
prabhakaran.k
just start background thread:
thread th = new thread(()=> { //do u wanna…… });
th.isbackground = true;
th.start();
another way u can backgroundworker class:
http://msdn.microsoft.com/en-au/library/system.componentmodel.backgroundworker(v=vs.80).aspx
Visual Studio Languages , .NET Framework > Visual C#
Comments
Post a Comment