disadvantages of garbage collection the typical disadvantages of garbage collection process includegarbage collection consumes computing resources to decide which piece of memory must be freed this information may already be available with the programmer the time at which the garbage collection process will be executed is unpredictable which may lead to stalls scattered throughout session this is unacceptable in real-time environmentstransaction processingor in interactive programs although incrementalconcurrentand real-time garbage collectors solve this problem but with some or the other trade-off some of the bugs addressed by garbage collection can have certain security implications requirements for automatic garbage collection an effective and efficient garbage collection process must have the following propertiesmust identify garbage the object or variable identified as garbage must actually be garbage must have less overhead during garbage collectionthe execution of the program is temporarily delayed this delay must be minimum