Reputation: 87
If I have 8 asynchronous functions to execute and 4 cores in my CPU, What is better (more speedy and correct)?
Language aren't important.
Upvotes: 0
Views: 38
Reputation: 3638
The answer is: It depends.
It depends on the workload. If threads are I/O bound, you can benefit by starting all 8 threads. If they're highly CPU bound, then it makes less sense.
Upvotes: 1