windows 8.1 freezing

So this is really weird behaviour , I am using windows 8.1 updated about 2 months ago to avoid of course some annoying issue such as harddisk 100% usage with windows 8. Now whats happening is say I have eclipse open , if I don’t do anything with eclipse for 10 mintues and leave my computer then come back to it. If I try to move the mouse or performs some action the program im using will appear to be okay initially then after about 30 seconds the entire window will freeze up , then windows explorer will freeze up and then most other things will freeze.

Anyone got any solutions.