Improve Temperature Generator scaling

The simulated temperature sensors use one thread per service provider. This causes sensiNact to have very high resource usage for large numbers of sensors. This fix changes the temperature generator to use a small threadpool and scheduling, rather than separate threads and sleeps, reducing overhead considerably.

Signed-off-by: Tim Ward <timothyjward@apache.org>
3 files changed