Question

In: Computer Science

What is internal and external fragmentation. Explain circumstances where one might be preferred over the other....

  1. What is internal and external fragmentation. Explain circumstances where one might be preferred over the other. [ 6pts]

  1. Given the following: configuration with jobs arriving in order (Job A, B, C) and with blocks shown in order from low order memory to high order memory: [ 4 pts]

    Job List:

    Memory Block List:

    Job Number

    Memory Requested

    Memory Block

    Memory Block Size

    Job A

    60K

    Block 1

    10K

    Job B

    10K

    Block 2

    60K

    Job C

    250K

    Block 3

    100K

    1. [4 pts]

    Job List:

    Memory Block List:

    Job Number

    Memory Requested

    Memory Block

    Memory Block Size

    Job A

    60K

    Block 1

    300K

    Job B

    10K

    Block 2

    60K

    Job C

    250K

    Block 3

    100K

    1. For each table (a) and table (b) above

    Use the first-fit algorithm to indicate which memory blocks are allocated to each of the arriving jobs.   

    Use the best-fit algorithm to indicate which memory blocks are allocated to each of the arriving jobs.  

    What are the differences you find in the first table and the second table for first fit and best fit algorithms. Explain your answer.

    1. List one similarity and one difference between paged memory and demand paging memory allocation. Explain two (2) circumstances where one might be preferred over the other.  [ 6 pts]
    2. What are the fundamental differences between paging scheme and segmented memory allocation? List both advantages and disadvantages of each neatly using tables [ 4 pts]

    1. Which (3) tables are used by the memory manger to keep track of the segments in memory? Describe each table. [6 pts]

    1. Why are segmentation problem like, compaction and external fragmentation removed in the combined segmented/demand paged memory allocation? [2 pts]

    7.   Given the following Segment Map Tables for two jobs below: [8 pts]

    SMT for Job 1

    Segment Number

    Memory Location

    0

    4096

    1

    6144

    2

    9216

    3

    2048

    4

    7168

    SMT for Job 2

    Segment Number

    Memory Location

    0

    2048

    1

    6144

    2

    9216

    a. Which segments, if any, are shared between the two jobs?

    b.   If the segment now located at 7168 is swapped out and later reloaded at 8192, and the segment now at 2048 is swapped out and reloaded at 1024, what would the new segment tables look like? [Draw the new tables]

    1. Give an example of each, first-in-first out (FIFO) and least-recently–used (LRU) policy. [5 pts]
    2. Show how much virtual memory and physical memory is in use by the Windows operating system.  Use the Resource monitor manager or the CMD command.  <<Show screenshot>> [Hint : You can research it on the web. One such web page is here]  [ 5 pts]

    https://www.techrepublic.com/article/how-to-use-windows-10s-resource-monitor-to-track-memory-usage/

    Solutions

    Expert Solution

    7 )

    a ) The segments shared between two jobs :

    • If we take a look at the segment map table for job1 and segment map tool table for job 2 ,it is very clear that three segments are shared between them
    • The segment at memory location 2048,6144 and 9216 are shared by two segment tables.

    Therefore, the segments shared by SMT for job1 and SMT by job2 are at the memory locations.

    2048,6144 and 9216.

    b) Swapping out the segments and reloading it in other locations and then

    displaying new SMT for job1 and job2:

    The following data consists of the segments which are swapped out and later reloaded in different memory

    locations.

    The segment located at 7168 is swapped out of the memory and then the segment is reloaded in memory

    location 8192.

    The segment located at 2048 is swapped out of the memory and then the segment is reloaded in memory location 1024.

    The following table consists of the new Segment Map Table for job1 and job2:

    segment map table for job1:

    Segment Number Memory Location
    0 4096
    1 6144
    2 9216
    3 1024
    4 8192

    segment map table for job2:

    Segment Number Memory Location
    0 1024
    1 6144
    2 9216

    =======================================================================================

    ANSWERED AS PER MY KNOWLEDGE

    IF ANY DOUBTS COMMENT IT

      


    Related Solutions

    1-What are the advantages and disadvantages of internal and external recruiting? Under what circumstances is each...
    1-What are the advantages and disadvantages of internal and external recruiting? Under what circumstances is each more appropriate? 2-Why is the formal training of workers so important to most employers? Why don't employers simply let people learn about their jobs as they perform them? 3-What different forms of compensation do firms typically use to attract and keep productive workers? 4-Why do workers in some companies unionize whereas workers in others do not?
    In terms of the change model (unfreezing, change, and refreezing) what internal and external forces might...
    In terms of the change model (unfreezing, change, and refreezing) what internal and external forces might resist each of the following: instituting mandatory diversity training for all employees, appointing a chief diversity officer, initiating applications for diversity awards, or establishing a phased retirement program?
    In terms of the change model (unfreezing, change, and refreezing) what internal and external forces might...
    In terms of the change model (unfreezing, change, and refreezing) what internal and external forces might resist each of the following: instituting mandatory diversity training for all employees, appointing a chief diversity officer, initiating applications for diversity awards, or establishing a phased retirement program?
    What is an internal consultant? How does an internal consultant differ from an external one? Kenton,...
    What is an internal consultant? How does an internal consultant differ from an external one? Kenton, Moody & Taylor "present a new model" for internal consultancy. How does their new model from a traditional approach?
    Explain at least 3 ways that Executive leader might develop a stronger relationship with stakeholders(internal, external,...
    Explain at least 3 ways that Executive leader might develop a stronger relationship with stakeholders(internal, external, and interface) - select one stakeholder group per category.
    A. Explain what external and internal economies of scale are and why the supply curve in...
    A. Explain what external and internal economies of scale are and why the supply curve in their case is shaped as “forward-falling”. B. What may cause one country to have an initial advantage from having a lower price? Discuss and give an example. C. Define what increasing returns to scale represents in the context of a production function. D. Can trade hurt a country when there are external economies of scale? Give an example with a 2-country 2-good model and...
    Explain the concepts of internal validity and external validity.
    Explain the concepts of internal validity and external validity.
    Under what circumstances might atypical behaviors actually be typical behaviors? Explain.
    Under what circumstances might atypical behaviors actually be typical behaviors? Explain.
    1. What are the differences between internal and external economies of scale? 2.How might trade hurt...
    1. What are the differences between internal and external economies of scale? 2.How might trade hurt a country if it imports goods produced under external economies of scale?
    Why might internal and external sovereign debt have different credit ratings?
    Why might internal and external sovereign debt have different credit ratings?
    ADVERTISEMENT
    ADVERTISEMENT
    ADVERTISEMENT