Closed davisjam closed 6 years ago
Problem: It was creating an infinite number of threads. Solution: Create 1000 threads, enough to prove the point.
Problem: It was using process.nextTick to queue the next set of threads. On recent versions of Node this means display() will never get to run.
Solution: Switch to setTimeout(again, 0).
This commit is toward #144 .
Problem: It was creating an infinite number of threads. Solution: Create 1000 threads, enough to prove the point.
Problem: It was using process.nextTick to queue the next set of threads. On recent versions of Node this means display() will never get to run.
Solution: Switch to setTimeout(again, 0).
This commit is toward #144 .