Thanks so much for keeping track!
I didn't stablish a pattern yet; I noticed that this re-started episodes were increasing over the time but I thought that the reason was having several programs open at the same time. However, over the last months I realize that this re-start are occurring few moments after turn on the iMac and after sleep.
In fact, I had a very strange situation… Yesterday I tried to re-install the OS (El Capitan*) but wasn't successful. The internet was OK (I use Ethernet wire and/or Wifi) and the Hard Drive seems OK from Disk Utility but I got an error message that said something like "can't find packages"). I tried also to launch the iMac from El Capitan pen-drive but it couldn't find it…
It got worse when the computer entered a "loop" (Restart > El Capitan installation fail > Restart) so I had no choice but make Time Machine back-up which took 4 hours…
Should I be worried about the Hard Drive although Disk Utility says is OK?
*My iMac is from 2009 so seems like El Capitan is the most updated OS it can handle.