thank you guyz. billd why a mask? i am in my hostel so do i have to get one?
If it is an older computer that has never had the dust blown out of inside of the case, blowing it out with an air compressor can create quite a "dust storm" that could make breathing, shall we say, unpleasant. If you don't mind breathing high volumes of dust, then you do not need a dust mask (perhaps a handkerchief or piece of fabric) - anything to cover your mouth and nose to keep the dust out of your lungs.
For additional clarity, if the CPU has a plastic cover over it for the cooling system, carefully remove the cover and blow out the dust that may have accumulated on and around the CPU heat sink. If the CPU is overheating because of dust accumulation and shutting down the system, you want to make sure the CPU and the cabinet cooling fans can work properly.
You also want to blow the dust out of the power supply. You do not need to take it apart unless it is clogged badly.
Of course, there could be many other problems causing the symptoms that you describe. However, before I troubleshoot any PC hardware problems, I always start by blowing the dust out of the cabinet and from around the CPU to make sure it is clean and cooling properly. If you do not have access to an air compressor, compressed air in cans may work OK for you.
I hope that clarifies the mask issue. Best wishes.