Access Methods
Access method 定義 application 以什麼順序或定位方式讀寫 file。
Main Methods
- D-OS-Ch13ba-Sequential_Access:照順序 read next / write next。
- D-OS-Ch13bb-Direct_Access:用 block / record number 直接定位。
- D-OS-Ch13bc-Indexed_Access_Methods:先查 index,再找到目標 block / record。
Intuition
Sequential access 最簡單,適合從頭到尾處理。Direct access 適合 random access,但 caller 要知道位置。Indexed access 讓 caller 用 key 找資料,代價是要維護 index metadata。