The file can be accessed by both the system’s paging file name and the file’s paging structure can be accessed by both the system’s paging file name and the file’s paging structure can be accessed by both the system’s paging file name and the file’s paging structure can be accessed by both the system’s paging file name and the file’s paging structure can be accessed by both the system’s paging file name and the file’s paging structure can
Optimal Replacement1234215621237632123611111111111177771111222222222222222222233333333333333333344456666666666666b)i)When the required page is not available in the free-frame pool then one of the least recentlyused page from the pool is removed and then the required page is moved from disk to free-frame pool and then to the resident set.ii)When the required page is in free frame pool then the required page is moved from freeframe pool to resident pages and one of the resident page based on FIFO replacement ismoved from resident page to the free frame pooliii)When the number of resident pages is set to 1 then system’s paging algorithm used will befree-frame pool paging algorithm. As the free frame pool paging algorithm is LRU thesystem’s paging algorithm reduces to LRUiv)When the free-frame pool size is zero, the system’s paging algorithm is resident pagesalgorithm. As the resident pages paging algorithm is FIFO. The system’s paging algorithmreduces to FIFO Question 2:a)In UNIX, all the files maintain a data structure called i-node. I-node stores the detailsabout the file. The filenames are used to refer to the data structure whereas the linkrefers to the contents of a file. Generally two types of links are used:i)Hard link: Hard link is used to just point to i-node of the file. For example consider a filea.txt that contains the text “This is sample test”. A hard link is constructed inUNIX with the ln command. A hard link to a.txt is created as follows:ln a.txt b.txtNow both a.txt and b.txt refer to the same i-node.
End of preview
Want to access all the pages? Upload your documents or become a member.
Related Documents
Page Replacement with 6 Frames Locked = 17 Page Faultslg...
|4
|1797
|436
Operating System | Assignment 1lg...
|13
|1864
|30
Operating System - Solved Questions and Answerslg...