<In an everyday meaning "task" could be used too.
But
is a good description which distinguishes from the informatic term "task" but the everyday analogon "something is functioning" is somehow a bit misleading too.
Maybe something like a sub-unit of code which does one thing and is build from two to n basic commands
This sub-unit should ideally do just one thing like:
-
checking the serial receivebuffer if a byte is there take it out of the buffer and add it to a variable
-
making an LED blink etc.
best regards Stefan