3 ms·
If you are deadlocking, you have a bug. If you hit OOM, you most likely have leaks or went wild with threads or allocations. Both of those conditions are ortho
by gdxhyrd 7y ago
If you are deadlocking, you have a bug. If you hit OOM, you most likely have leaks or went wild with threads or allocations.
Both of those conditions are orthogonal to async/thread pools, so what do you mean?
- lacker 7y agoI mean, if your thread pool has 10 threads available, and your code attempts to run an 11th thread, you can run into a deadlock. Whereas that same code written with async/await can run fine. You can call that "going wild with threads" but in an async/await model it is often just fine to use that many async calls.