are u using toshiba?
cos I had similar problems with my toshiba,
my notebook was full of dust and that's why it's shuting down cos CPU becomes too hot over 105C and then shut's down and needs an hour to cool down.
if so all u can do is cleaning off your lap and eventually buy some notebook cooler if u wanna doing CPU-hard task's.


