Segmentation
Segment는 그저 address space의 contiguous한 부분일 뿐이다.
Segmentation은 OS에게 각각의 segments(Code(Data), Stack, Heap)를 다른 physical memory에 위치 시킬 수 있게 해준다.
따라서 사용되지 않은 virtual address 공간에 physical memory를 채우는 일을 피할 수 있다.
Segmentation Implementation
MMU는 프로세스마다 다른 Segment Table을 가지고 있다.
각각의 segment는 그들만의 base and bound, protection bits를 가지고 있다.
0x0240은 segement가 0 이므로 Base 0x2000을 더해줘 physical address는 0x2240이 된다.
'3-2 > 운영체제' 카테고리의 다른 글
Translation Lookaside Buffer (0) | 2021.10.21 |
---|---|
Introduction to Paging (0) | 2021.10.08 |
Memory API (0) | 2021.10.08 |
The Abstraction : Address Space (0) | 2021.09.30 |
Multiprocessor Scheduling (0) | 2021.09.24 |