I have a problem in my desktop pc.

I'm using a desktop.
This configuration is BiostarG41 DDR3 motherboard, RAM 2GB, and processors intel celeron 1.8 MHz.
So my problem is when I play any games my pc didn't work properly some time hanging. I using windows 7.
Can you tell me what is the solutions for this.
I didn't want to change my windows.
