"void name()" creates a function. void means that it doesn't return any value (some languages call a function that doesn't return any value a "subroutine" to distinguish, but C calls everything a function.)
It runs when some other code 'calls' it. NOTHING runs in parallel on a microcontroller (although things that use interrupts may appear to do so.)