public TestOb(int id, int measExecTime, int saveTime, int getWaitTime, LLA lla) { td = new HWTestData(id, saveTime, getWaitTime); this.measExecTime = measExecTime; this.lla = lla; }
public void doSave(HWTestData td) { Console.WriteLine("Thread: {0}, Time: {1}, -- enter doSave - id = {2}", Thread.CurrentThread.ManagedThreadId, DateTime.Now, td.id); Thread.Sleep(TimeSpan.FromSeconds(td.saveWaitTime)); Console.WriteLine("Thread: {0}, Time: {1}, -- leaving doSave - id = {2}", Thread.CurrentThread.ManagedThreadId, DateTime.Now, td.id); return; }
public int doGet(HWTestData td) { Console.WriteLine("Thread: {0}, Time: {1}, ++ enter doGet - id = {2}", Thread.CurrentThread.ManagedThreadId, DateTime.Now, td.id); Thread.Sleep(TimeSpan.FromSeconds(td.getWaitTime)); td.data = td.id + 10; Console.WriteLine("Thread: {0}, Time: {1}, ++ doGet - returning {2}", Thread.CurrentThread.ManagedThreadId, DateTime.Now, td.data); return(td.id); }