iMac 27 late 2009 - Grey screen shows at startup on yosemite iMac screen stuck while watching youtube. 


After restart system stuck on grey screen :( 



Tried All these given below


Did reset PRAM 
Did Hard Drive Verify
Re-install Yosemite
Clean install Yosemite
Working in safemode
I had the same Issue on my old iMac - it turned out to be defective Memory of the Graphics Card (due to overheating). 

I changed the Graphics Card and fixed the problem. There is a very well written tutorial on how to change the Card on iFixit. The only problem would be to find a replacement Card - i paid about 360$ for mine.