Interrupt driven code and busy waiting process