1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Memory Partition Examples

Discussion in 'Operating System' started by persysweb, Feb 27, 2018.

  1. persysweb

    persysweb Member

    Joined:
    Aug 1, 2017
    Messages:
    90
    Likes Received:
    13
    Trophy Points:
    8
    Location:
    India
    Home Page:
    Examples of Memory Partitions :

    There are 5 memory partition :
    100Kb,500Kb,200Kb,300Kb,600Kb (in-order), how would best-fit,worst fit and first fit algorithms takes place processes of 212 Kb, 417Kb, 112 Kb and 426 Kb (in-order).

    First-fit :
    212 K is put in 500K partition. (500-212 =288K) =new partition.
    417K is put in 600K partition.
    112K is put in 288K partition.
    426K have to wait.

    Best Fit :
    212 KB in 300KB partition.
    417K is put in 500 partition
    112K is put in 200KB partition.
    426K is put in 600K partition.

    Worst-fit :
    212K is put in 600K partition.
    417K is put in 500K partition.
    112K is put in 388K partition.
    426K must wait.

    In this example best fit turns out to be best.
     

Share This Page