automatically shutting down high load processes

Is their anyway to automaticall shut down a process when it reaches a certain load level on a linux machine? To avoid it from hanging the entire server?

 

 

 

 

Top