I am looking for a Pi 2 B to run 3 separate python background tasks simultaneously/constantly: Respond to pin inputs, respond to UDP requests and send UDP data back and poll a set of temperature sensors periodically (say every minute).
What is the best way to handle the polling period without taking significant system resources from the other tasks? Does 'sleep' use significant resources while it is sleeping? Is there a timer interrupt that would use less resources while waiting (and if so how do I program it) - or is that what 'sleep' is anyway? Are there better alternatives?
Grateful for any suggestions. Thanks.