摘要 |
The present invention relates to an apparatus and a method for processing resources by a garbage collector. The resource processing method comprises the following steps: selecting a node forming a part of the resources, determining the status of the node, locking and eliminating the node after determining the status of the node, and verifying whether the node was altered before the elimination, thereby boosting the speed, efficiency and reliability of the garbage collection process. [Reference numerals] (AA) Start; (BB,EE) No; (CC,DD) Yes; (FF) End; (S21) Select a node; (S23) Lock the node; (S24) Is the node altered?; (S25) Eliminate the node; (S26) Unlock a memory; (S27) Unlock the node |