|
|
|
|
|
by ambertch
5261 days ago
|
|
AND... around and around the carousel we go. The threads vs. event loop thing doesn't always pan out to either one being 'better' - who do you think is doing the work when your browser, or Node.js does an async call? They use threads too, and there are certain workloads where it's more efficient to just use multithreading instead of event loop + thread pools. I can't find my references atm b/c I'm traveling, but if you google around you will find numerous case studies in the Java world about threads vs. event loops (the Java world has been wrestling with threads vs. event loops too, for the past DECADE) Remember as an engineer: spike, profile, benchmark, and determine the best solution for the problem. |
|