DEV Community

lbvf50mobile
lbvf50mobile

Posted on

Golang G/M/P Time Scale

If we imagine that 1 millisecond is one “day”, then 1 second becomes about 3 years.

1 s ≈ 3 “years”
1 ms = 1 “day”
2 µs ≈ 1 “minute”
10 ns ≈ 1 “second”

Thus, the RTT over 5000 km (~56 ms) is about 2 “months”.

And G/M/P scheduling (context switching), which takes ~1000 ns, is about 30 “seconds” in this scale.

Top comments (0)