首页 > 试题广场 >

Compare the main memory organi

[问答题]
Compare the main memory organization schemes of contiguous-memory allocation, pure segmentation, and pure paging with respect to the fol-
lowing issues:
a. external fragmentation
b. internal fragmentation
c. ability to share code across processes

推荐
ontiguous memory allocation scheme suffers from external fragmentation as address spaces are allocated contiguously and holes develop as old processes dies and new processes are initiated. It also does not allow processes to share code, since a process's virtual memory segment is not broken into non-contiguous finegrained segments. Pure segmentation also suffers from external fragmentation as a segment of a process is laid out contiguously in physical memory and fragmentation would occur as segments of dead processes are replaced by segments of new processes. Segmentation, however, enables processes to share code; for instance, two different processes could share a code segment but have distinct data segments. Pure paging does not suffer from external fragmentation, but instead suffers from internal fragmentation. Processes are allocated in page granularity and if a page is not completely utilized, it results in internal fragmentation and a corresponding wastage of space. Paging also enables processes to share code at the granularity of pages.
发表于 2018-03-23 21:56:30 回复(0)