optimization - Usefulness of prime numbers as Threading Timeouts in programming -
i .net programmer, founded in math. having argument fellow programmer. when add threaded timer program, interval in milliseconds use prime number.
my coworker (and seemingly vast majority of programmers everywhere), insists even, round numbers sufficient. example, use 200 ms, 900 ms, 400 ms. tend use numbers either prime, or @ least, meaningful me (a former address, phone number, etc.)
i haven't been able find in way of support on internet. read 1 entry in forum alluded harmonics of machinery. wouldn't, then, computer program analagous machinery? computer program virtual machine, , machine runs put together. seem if many "round" numbers used (the multitude of milliseconds multiples of 100), harmonics emerge.
harmonics in computer software manifest in ugly ways, glitches, skipping, , abrupt visual sequences.
can verify assertion? place in both mathematics , stack overflow since there strong overlap.
Comments
Post a Comment