摘要 |
A method of allocating memory for a file includes determining a size of the file and searching a memory segment list to determine whether the file can be stored in one of a plurality of memory segments catalogued in the memory segment list. The memory segment list includes a plurality of entries, each one of the plurality of entries being associated with one of the plurality of memory segments and indicating whether the associated one of the plurality of memory segments includes a hole that is unoccupied, where each of the corresponding ones of the plurality of entries are adapted for identifying the hole and a hole size associated with the hole that identifies an amount of memory within the memory segment that is unoccupied.
|