So far, I've learned programming using languages that are interpreted (javascript.) So it's easy enough for me to draw shapes, and do cool things while the user is interacting. But now I want to make a program that does things in the background of the users machine, and doesn't take up a lot of resources. I'm familiar with python, so I've started making key functions, and I can run them from the terminal, but I'm lost on how I could tell the program to check for hard drives, say, every ten minutes.
Is there an OS feature that my program can get called upon every ten minutes? Or should I do a while loop, and just wait for something to change?
The latter seems processesor-heavy, but I have no idea. If you could just give me the keywords to Google, I could follow the rabbit hole, but this isn't something I've ever run across.