To Implement File Allocation Strategies

Procedure

  1. Continuous File Allocation :
    1. Create a File: Enter the file name, file type, and file size (in MB).
    2. Specify the Starting Block: Manually provide the starting block number (D.B.A) for the file.
    3. Allocate Blocks to the File: Click the SUBMIT button to allocate the blocks to the file on the hard disk.
    4. Observe Allocation: If enough memory is available, observe the changes in the directory and ensure that the blocks are allocated contiguously.
    5. Repeat for Additional Files: Repeat steps 1 through 4 for each new file until all blocks are allocated.

  2. Linked File Allocation :
    1. Enter the Number of Blocks: Specify the number of blocks (5–15) you want to allocate on the hard disk.
    2. Enter the Block Size: Set the block size (10–100 MB) you want for each block.
    3. Submit Block Allocation: Click the SUBMIT button to allocate the specified number of blocks with the given size.
    4. Create a File: Enter the file name, file type, and file size (in MB).
    5. Specify the Starting and Ending Block: Manually provide the starting & ending block number (D.B.A) for the file.
    6. Allocate Blocks to the File: Click the SUBMIT button to allocate the blocks to the file on the hard disk.
    7. Observe Allocation: If enough memory is available, observe the changes in the directory and ensure that the blocks are allocated non-contiguously.
    8. Repeat for Additional Files: Repeat steps 4 through 7 for each new file until all blocks are allocated.

  3. Index File Allocation :
    1. Enter the Number of Blocks: Specify the number of blocks (5–15) you want to allocate on the hard disk.
    2. Enter the Block Size: Set the block size (10–100 MB) you want for each block.
    3. Submit Block Allocation: Click the SUBMIT button to allocate the specified number of blocks with the given size.
    4. Create a File: Enter the file name, file type, and file size (in MB).
    5. Specify the Index Block: Manually provide the index block number(free block) for the file.
    6. Allocate Blocks to the File: Click the SUBMIT button to allocate the blocks to the file on the hard disk.
    7. Observe Allocation: If enough memory is available, observe the changes in the directory and ensure that the blocks are allocated non-contiguously.
    8. Repeat for Additional Files: Repeat steps 4 through 7 for each new file until all blocks are allocated.