Mac will freeze every few seconds
After about 10 seconds of this everything started working again, but about 10 seconds later everything froze again. This happened about 10 times before I decided to restart the computer. After the restart, everything was slow to load up, and once everything was loaded, it went right back to freezing every few seconds again. Any idea what the problem is or how to fix it?
iMac 27", Mac OS X (10.6.4)