Question

The memory management scheme shown below represents basic contiguous memory

allocation of processes. Processes 1 through 7 were created in order and allocated memory

locations for execution as shown in step 1. Processes 1, 3, and 6 terminate, and several holes

appear as shown in step 2. Processes 8, 9 and 10 are created next. Each of these are 1MB in size.

Using the Best Fit strategy, complete the figure for step 3. Assume no other processes have

terminated.3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 21 2 123456789012345678901234 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3

0 0
Add a comment Improve this question Transcribed image text
Answer #1

In step 2, there are 3 holes available with sizes 2MB, 3MB and 4MB.

In best fit strategy, the smallest hole that is big enough for the process is allocated.

For process 8, hole with size 2MB will be used to allocate 1MB to P8 and remaning 1MB hole will be left, which will be allocated to process 9 P9 .Then, we are left with holes of size 3MB and 4MB . For process 10 , hole with size 3 MB will be used and 1MB will be allocated to P10 and remaining 2MB hole will be left as it is.

oS 1 MB 2MB 3 MB 1AI 5 MB P10 Hole P2 P8 P9 P4 MB 8 MB 9 MB 10 MB 11 MB 12 MB 13 MB 41 15MBHole 16 MB 17 MB 18 MB 19 MB 20 MB

Step 3

Add a comment
Know the answer?
Add Answer to:
The memory management scheme shown below represents basic contiguous memory allocation of processes. Processes 1 through 7 were created in order and allocated memory locations for execution as shown i...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Q.25. Given the following program, you are asked to discuss memory leaks caused in its execution....

    Q.25. Given the following program, you are asked to discuss memory leaks caused in its execution. Determine which memory locations get uncontrolled. (2 points) 4 6 7 8 9 10 11 12 B 13 14 15 16 17 18 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 5 void main() { char *aString = "Memory leaks?"; char **strList; int i, n = 5; strlist = (char**)malloc(n*sizeof(char*)); for (i=0; i<n; i++) { printf("\nstring %d ", i+1); strList[i] = (char*)malloc(50*sizeof (char));...

  • The hypothetical machine of Figure 3.4 has two I/O instructions: 0011 = Load AC from I/O...

    The hypothetical machine of Figure 3.4 has two I/O instructions: 0011 = Load AC from I/O 0111 = Store AC to I/O In these cases, the 12-bit address identifies a particular I/O device. Show the program execution (using the format of Figure 3.5) for the following program: 1. Load AC from device 5. 2. Add contents of memory location 940. 3. Store AC to device 6. Assume that the next value retrieved from device 5 is 3 and that location...

  • (C++) I need to write a priority queue(where the processes inside are listed as example: P25:2...

    (C++) I need to write a priority queue(where the processes inside are listed as example: P25:2 , 25 being a randomly assigned ID(1-50) and 2 being a randomly assigned priority number(1-10). Once the priority queue is full(10 max), it will transfer the highest priority process to a waiting queue. Once the waiting queue is full(7 max), one process(highest priority) will transfer to a ready queue where the system would perform the process in a round robin style. Once 25 processes...

  • 1. Threads created by a single program share the same memory address space. T/F 2. Threads...

    1. Threads created by a single program share the same memory address space. T/F 2. Threads created by a single program share the same memory stack. T/F 3. Threads created by a single program share the same scheduling state (e.g., Ready, Waiting). T/F 4. Threads created by a single program share the same open files. T/F 5. A thread enters the Running state when the thread scheduler resumes it. T/F 6. The thread_exit() call can immediately garbage collect the exited...

  • Basic Project Management Lesson 6. Exercises 1. The AOA diagram of a project is shown below....

    Basic Project Management Lesson 6. Exercises 1. The AOA diagram of a project is shown below. The duration of each activity in days is shown by its side. a. Calculate the earliest and latest schedules of each event. b. Show the critical path by thickening the critical arrows. c. Fill in the Slack Table. -- a 15 Start Finish 11 13 Slack Table: Task 1-2 1-3 2-3 2-4 Slack TTT 2-5 3-5 | 3-7 | 4-6 5-6 5-7 5-8 6-8...

  • Find the work done (in J) in the quasi-static processes shown below. The states are given...

    Find the work done (in J) in the quasi-static processes shown below. The states are given as (V, p) values for the points in the pV-plane: 1 (5 L, 6 atm), 2 (7 L, 6 atm), 3 (5 L, 8 atm), 4 (7 L, 1 atm), 5 (3 L, 7 atm), 6 (6 L, 8 atm), and 7 (6 L, 1 atm) 3 1 1414 × 6 1 2 203 1 2

  • 1. Beginning with Uranium-235, fill in the decay-scheme diagram in the figure below 2. In the...

    1. Beginning with Uranium-235, fill in the decay-scheme diagram in the figure below 2. In the table below, identify the new element and put it in the diagram A 235 4 231 227 223 219 215 211 207 203 80 81 82 83 84 85 86 87 88 89 90 91 92 Z Step Particle(s) Emitted B B a 1 2 3 4 5 6 7 8 9 10 11 12 13 Inverse 8 B a B

  • Problem 4 (15pts): (a) (5pts) Consider the following MIPS memory with data shown in hex, which...

    Problem 4 (15pts): (a) (5pts) Consider the following MIPS memory with data shown in hex, which are located in memory from address 0 through 15, Show the result of the MIPS instruction "Iw Ss0, 4(Sa0)" for machines in little-endian byte orders, where Sa0 8 Address Contents Address Contents 4¢ 8 c5 6d 1 9 2 7e 8f 66 10 70 11 8a Oa 12 13 14 15 1b a3 b4 2c 6 3d 7 (b) (10pts)Assume we have the following...

  • Complete parts (a) through (e) for the population data below. 1, 4, 7, 10 a. Find...

    Complete parts (a) through (e) for the population data below. 1, 4, 7, 10 a. Find the mean, l, of the variable. u= (Type an integer or a decimal. Do not round.) b. For each of the possible sample sizes, construct a table with all possible samples and their sample means, and draw a dotplot for the sampling distribution of the sample mean. Find the sample mean x for each possible sample of size n= 1. Sample X 1 4...

  • A compound has the 'H NMR spectrum shown below. Identify the compound. 11 10 9 00...

    A compound has the 'H NMR spectrum shown below. Identify the compound. 11 10 9 00 7 6 UI 4 3 2 1 O None of these compounds fit the spectrum that is shown here. CN O Me H A compound has the 'H NMR spectrum shown below. Identify the compound. 3H triplet 2H triplet 2H 11 10 9 00 7 0) 5 4 3 N 1 0 None of these compounds fit the spectrum that is shown here. A...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT