What are the types of fragmentation, and how do they occur?

  • Internal fragmentation: within a block allocated for a process, there is extra unused space

  • External fragmentation: Large amounts of holes, which are not used, but too small