I am working on a project, i am using threads over here.. I run a thread and waiting for its isAlive status to become false but my thread is not terminating... Here is the Code Sample.
Thread t = new Thread(new ThreadStart(print));
t.start();
while(t.IsAlive)
{
}
console.writeline("Thread is Dead Now");
private void print()
{
console.writeline("Hello,World");
}
//------------------------------- Syntax is buggy but logic is same as of my app -----------