OSY_6th unit Notes
OSY_6th unit Notes
Advantages of Swapping:
1. Runs more programs than available RAM.
2. Prevents crashes when RAM is full.
3. Reduces need for extra RAM.
4. Supports large apps with limited memory.
Disadvantages of Swapping:
1. Slows down the system.
2. Causes lag with large swaps.
3. Inefficient for small swaps.
4. Can lead to thrashing.
Q.5] Explain File Allocation Method
1. Contiguous Allocation
2. Linked Allocation
3. Indexed Allocation
1] Contiguous Allocation:
▪ If the blocks are allocated to the file in such a way that all the logical blocks
of the file get the contiguous physical block in the hard disk then such
allocation scheme is known as contiguous allocation.
▪ In the image shown below, there are three files in the directory.
▪ The starting block and the length of each file are mentioned in the table.
▪ We can check in the table that the contiguous blocks are assigned to each
file as per its need.