Domanda

I've been creating an asynchronous C# server and the server creates a single thread per client. However, I was told that with too many threads you could end up with deadlock.

So how might avoid deadlock with threads? How would I implement such a feature?

È stato utile?

Soluzione

It's actually a big topic, to be told here.

Read about it at Avoid And Detecting Deadlocks in C#

It is a MSDN link

The above link will likely help you

For code samples, click this link

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top