r/programming • • Apr 26 '16

Node.js v6.0 released

https://nodejs.org/en/blog/announcements/v6-release/
132 Upvotes

79 comments sorted by

View all comments

Show parent comments

0

u/RazerWolf Apr 27 '16

You used the concept of threads when I explicitly mentioned not to do this. You know timers can exist without threads right? DispatcherTimer does this in WPF (https://msdn.microsoft.com/en-us/library/system.windows.threading.dispatchertimer(v=vs.110).aspx)

You need 24 queues, and 24 timers, and one node instance which will have a "dispatchTimers" called some point in its event loop.

0

u/[deleted] Apr 27 '16

[removed] — view removed comment

1

u/RazerWolf Apr 27 '16

1 thread. Not 24. It's O(1).