Computer Hanging UP

Every once in a while my computer will lock up temporarily. I can still move my mouse, but just not click anything. Any ideas what this could be? I realize there is a lot of possibilities, but could you just throw some out please.

It seems to happen when Im in Photoshop a lot.