I have two threads in my project, say thread A and thread B.
While thread B is busy doing something, I want to send a signal from thread A to thread B. After thread B receives the signal, it executes the corresponding signal handler immediately. In Linux, it is easy to do this with signal. To have the same effect, what should I do with C# threads?
I don't know about signal
in linux, but you can use ManualResetEvent to signal another thread.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With