I hate Ubuntu >:(

Why does my computer keep wigging out?  The CPU goes to 100% and the mouse cursor repeatedly changes from arrow to I beam to finger, preventing me from using the mouse for about 5 seconds at a time.