educative.io

Difference between the rate limiter with deamon thread and without

I am trying to understand why in the first example threads the first five threads are granted tokens immediately at the same second granularity instant and in the second threads are shown being granted tokens at exactly 1-second intervals instead of all at once.