DEV Community

Discussion on: Implement a timing wheel for millions of concurrent tasks.

 
marcello_h profile image
Marcelloh

Some queues have timing inside, but you can make your own queue which has that. (or even multiple ones, for the various tasks)

Thread Thread
 
carl_eckhardt_7d76db670e0 profile image
Carl Eckhardt

Yeah. I was looking at doing this too. Your idea makes or allows the multiple time aligned tasks in each queue to operate independently. Kevin’s method is similar to derived clocks in an ASIC or FPGA. Each band of the circle uses the smallest resolution of the innermost timer step and uses that in multiples.