摘要 |
<p>A garbage collection program allows a computer to execute: copying valid data from a first block in a NAND type flash memory to a main memory, a unit of deletion of data stored in the NAND type flash memory being a block, the valid data and invalid data being stored in the first block; instructing an exclusive mechanism to perform exclusive control of accessing to the valid data in a copy-source; switching an access path to the valid data in the copy-source, to the valid data in a copy-destination; instructing the exclusive mechanism to release the exclusive control; copying the valid data in the copy-destination from main memory to a second block in the NAND type flash memory; instructing the exclusive mechanism to perform exclusive control of accessing to the valid data in a copy-source copied to the second block; switching an access path to the valid data in the copy-source copied to the second block, to the valid data in a copy-destination copied to the second block; and instructing the exclusive mechanism to release the exclusive control.</p> |