4 ms·
That only works for one thread. Many (most?) cases for using multithreading are when you need to do something CPU-bound, for which event-based mechanisms don't
by mcav 17y ago
That only works for one thread. Many (most?) cases for using multithreading are when you need to do something CPU-bound, for which event-based mechanisms don't help.
- cpr 17y agoIn that case you can use webworker-like computational threads, avoiding global data locking, etc.