 If several applications are all making large demands, the OS can spend much of its time merely moving data between main memory and disk, a process known as disk thrashing.Since the garbage collector has to examine all of the allocations to decide which are in use, it may exacerbate this thrashing.As a result, extensive swapping can lead to garbage collection cycles extended from milliseconds to tens of seconds.