mark1806 wrotei tried safe mode, its not working, it keeps restarting!
That's not a software problem then.
It must be a hardware problem. Perform a quick search in the forums and you'll find some suggestions.
I'd say it's a RAM problem. Try removing one Ram and keeping the other (try both possibilities)