Executing sequential program concurrently with state machine instructions