4 ms·
Careful, this is not Erlang. These are real threads, you won't be able to have thousands of them, more like 20 [1]. If most of them are idle, then you can maybe
by davidkunz 5y ago
Careful, this is not Erlang. These are real threads, you won't be able to have thousands of them, more like 20 [1]. If most of them are idle, then you can maybe increase it to ~100. They come with a considerable overhead, so it's better to have one thread handle several I/O operations concurrently and in parallel, than to have one thread dedicated to only one I/O operation.
[1]: https://serverfault.com/questions/1012360/how-can-i-tell-the-maximum-threads-my-server-can-run#:~:text=Each%20core%20can%20only%20run,one%20thread%20per%20CPU%2Fcore https://serverfault.com/questions/1012360/how-can-i-tell-the....