Original: The loop calls subroutines, each of which manages a part of the hardware or software.
Simplified: The loop calls subroutines, each subroutine manages a part of the hardware or software.