MAC Got You By The Balls

Often while using applications which are taxing on the RAM and the processor some mac operating systems display a spinning beach ball to ask for time to refresh its list of process ids. The problem occurs when this spinning ball just sticks to the skin and refuses to go along with that all systems slow beyond usable level, what can be the workaround this?
