Here is my CS
protected void timer_Tick(object sender, EventArgs e)
{
lblNum.Text = string.Format("{0:dd:MM:yyyy hh:mm:ss}", DateTime.Now);
if (DateTime.Now.Second == 30)
{
Thread t = new Thread(DisplayImages);
t.Start();
//t.Suspend();
t.Join();
}
}
I want to wait thread t for some fixed interval of time, leaving my main thread untouched. After that interval I would like to do some stuffs in the thread t.
I tried t.Sleep(), but no avail as Sleep() is a static one.
Update:
See my existing question. This question is a part of that. My main thread has a ticker which I dont want to stop. So I cant use Thread.Sleep() as it might freeze the main one.