A Map is an Array, which contains the addresses of the free space in
the swap device that are allocatable resources, and the number of the resource
units available there.
This allows First-Fit allocation of contiguous blocks of a resource.
Initially the Map contains one entry – address (block offset from the starting
of the swap area) and the total number of resources.
Kernel treats each unit
of Map as a group of disk blocks. On the allocation and freeing of the
resources Kernel updates the Map for accurate information.

No comments:
Post a Comment