How to suspend a blocking thread without obsolete Thread.Suspend?

I have a thread that is waiting on TcpListener.AcceptTcpClient(), which is blocking , which I want to pause from time to time.

I read about Monitor.Wait(...), but I only have experience with mutexes, and if the thread expects a lock method, it becomes interesting.

Now that it's Thread.Suspend(...)out of date, how do I suspend a thread?

+5
source share
1 answer

, . , . , - , .

. , , - , , .

+2

All Articles