In addition to deadlock, another reason is that resources are exhausted. No matter how many threads you have, there is no use if you have no resources (CPU, memory, etc.). Multi-threading can only guarantee that if one thread dies, other threads can still be used.
Isn’t there any talk about deadlock in the operating system...
In addition to deadlock, another reason is that resources are exhausted. No matter how many threads you have, there is no use if you have no resources (CPU, memory, etc.). Multi-threading can only guarantee that if one thread dies, other threads can still be used.