fix dead looping detaction

add cond_resched() into main instruction dispatcher
Update Todo list on dead loop handling