How to detect task overruns

I think the issue is that what can the OS due generically if a task over consumes the processor. This really needs to be an application decision. As has been pointed out, there ARE ways to make the overrun detectable.

To get better help, a better description of what you are looking to do might help.