There's lots of questions about it but I don't quite get it yet.
I have to upload some code into a server to run 24/7, and this code will be basically something like this:
while True:
variable1 = function1()
variable2 = function2()
variable3 = function3()
So let's say I want to do variable2 = function2() once every hour or so, for performance (I don't understand much about it, but I think it'll do good to put a timer on it)
I can't use time.sleep() on it because the code has to keep going
I mentioned the server thing because I don't know if answers using a system timer works with it, I'm still learning how to do it.
Forgot to say I'm using Python 2.7
cronutility (you'll find that outside the Python universe, but it can run Python scripts for you just like it can run anything else). If you must have these functions in the same process, then it sounds like you need the three functions to run in separate threads. Python can handle that for you via thethreadingmodule. But threading is a deep-ish topic with a few gotchas lying in wait for the unwary, so get googling.