I have a thread that waits on TcpListener.AcceptTcpClient()
, which blocks, which I want to suspend at times.
I've read about Monitor.Wait(...)
, but I only have experience working with mutexes and if the thread waits on a blocking method, it gets interesting.
Now that Thread.Suspend(...)
is obsolete, how should I suspend the thread?