Hi guys Public Class1 { public int Func() { Blah Blah Blah } public int Func2() { Blah Blah Blah } void main() { int value1; Class1 CL1 =new Class1(); var thread1 = new Thread(() =>{value1 = CL1.Func();}); var thread2 = new Thread(() =>{ System.ServiceProcess.ServiceBase.Run(Func2());}); } } Here goes my question, I want to schedule the thread1 i.e I want to call method(Func) at regular intervals and I will compare the values returned by it each time.Based on the comparison outcome I want to restart the thread2 even though it is running.Is it possible to achieve this. Thanks in advance.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)