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


下载msdn桌面工具(vista,win7)
我的博客园
慈善点击,点击此处



Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

How to Share webservice object to all user