3 ms·
setTimeout and non-blocking io produce out of order execution. What more concurrency are you looking for?
by iovrthoughtthis 9y ago
setTimeout and non-blocking io produce out of order execution.
What more concurrency are you looking for?
- charlysl 9y agoYou have a point, I shouldn't have said "no concurrency". You are restricted to what ammounts to coroutining, which is just one of the many concurrency techniques out there, none of which you can teach with javascript. You wouldn't be able to show many of the other possibilities of concurrent programming.
- iovrthoughtthis 9y agoI agree, JS is absolutely limited for teaching concurrency.