Time delays without using Thread.sleep() : <p>I wrote a client application where I am using two threads other than the main thread.The Background thread is used to receive data through TCP IP,while after receiving I am calling another thread that will show the received data continuously using a for loop.But after every iteration the for loop needs to wait for 30 seconds.I have used Thread.sleep(30000) but the dont know why its not working,sometimes it wakes up from sleep mode before 30 seconds.I am using dot net framework 4.Please suggest some other alternatives.</p>

<pre><code> for(n=0;n&lt;=m;n++)
 {
   //show data;
   //wait for 30 seconds
 } 
</code></pre>
