My guess would be a timer interrupt. This would probably be better asked in the programming forum, though...