Question

Consider a variation of this slide

Swapping (1) Time Operating Operating Operating Operating Operating Operating Operating system system system system system stem System (b) (d) (e) (a) (c) (g)

Assume that the memory of this computer is of 1Gbytes and OS takes 200 Mbytes in the beginning or the bottom like in part (a) of the figure.

Assume that processes A, B, C, D, E, F, and G each takes 100M, 120M, 140M, 160M, 180M, 200M, and 300M bytes to run.

(a)(5%) Note a way to represent that A runs, B runs, C runs, and B is swapped out is like below in Figure 2.

(figure 2)

Show how it looks with A runs, B runs, C runs, B out, D runs, A out, and E runs with a picture similar to Figure 2.

(b)(7%) It is apparent that all 7 processes can not run concurrently in this memory since the memory they use together is 100+120+140+160+180+200+300 = 1200 M > 800 M.

What is the maximum number n of processes that can run concurrently? Explain! We know n < 7, and n > 1.

(c)(7%) With n processes running in memory (so that any n+1 processes take more than 800 M bytes memory), find the combination that utilizes the most of the memory. Note there are at least two different ways of running n processes in the memory.

(d)(7%) For two processes running in the memory, we notice that with A and B of 100 + 120 = 220M, this is the combination using the least amount of memory; and with F and G of 200 + 300 = 500M bytes, this is the combination using the most amount of memory. If the sum of two processes can not be more than 400M bytes, which combination uses the most amount of memory <= 400M bytes? Find out that.

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

We have memory in a Computer is 1GB that is 1024MB.

Initially OS took 200M in the 1024MB, so now we have 824MB.

A process can take – 100MB

B process can take – 120MB

C process can take – 140MB

D process can take – 160MB

E process can take – 180MB

F process can take – 200MB

G process can take – 300MB

Totally we have 7 processes that can take 1200MB. But we have only 824MB space remaining in memory.

A)

B,C)

We have 824 MB remaining after OS took 200MB.

With A + B + C + D + E = 700M. and we left with 124 MB. If any process can added, it will cross 824 MB. That is why we can’t accommodate either F or G. so we can run 5 processes currently.

Or else we can make F can accommodate, by not adding A.

B + C + D + E + F = 800MB. And we left with just 24MB.

Or else we can make G can accommodate, by not adding E.

A + B + C + D + G = 820 MB. And we left with 4MB, this is optimal utilization of memory.

In 3 cases, we can run only 5 processes. But in 3rd way, we can fully utilize the memory.

D)

We have 3 different ways to run n processes (that is 5 processes).

One is A + B + C + D + E = 700MB. Here the combination that utilizes the most of the memory is D and E, which is 160 + 180 = 340 MB.

Second way is B + C + D + E + F = 800MB. Here the combination that utilizes the most of the memory is D and E, which is 180 + 200 = 380 MB.

Third way is A + B + C + D + G = 820 MB. Here the combination that utilizes the most of the memory is D and G, which is 160 + 300 = 460 MB.

Add a comment
Know the answer?
Add Answer to:
Consider a variation of this slide Assume that the memory of this computer is of 1Gbytes...
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
  • In the following image, the memory usage of various processes of a computer running a Windows...

    In the following image, the memory usage of various processes of a computer running a Windows Operating System is shown: A. Find the following measures of central tendency of the memory usage in kilobytes (Kb): *Mean *Mode *Median B. Find the following measures of dispersion of the memory usage in Kb: *Range *Variance *Standard Deviation C. Identify the values that are responsible for the variance of the dataset. Provide a possible solution on how the computer user could decrease the...

  • 1. True or False: Hard disk devices that use flash memory chips for storage is called...

    1. True or False: Hard disk devices that use flash memory chips for storage is called a Solid-State Drive (SSD)? 2. True or False: NTFS is a recognized Linux file system? 3. The software that runs on an Operating System and provides the user with specific functionality is called? a. Application b. Tracert c. Ping d. Kernel 4. This command is used to view a list of running processes. a. FORK b. JOBS c. LIST d. SHOW

  • Choose the correct answer 1. A virtual machine executes on a host operating system and a...

    Choose the correct answer 1. A virtual machine executes on a host operating system and a hypervisor provides an API to the actual hardware 2. The guest OS knows that it is not accessing the actual hardware so that it can perform better 3. The VM may supply an environment that is different than the actual host hardware 4. Applications running within the VM have an illusion that they are executing on a real machine Select one: a. All the...

  • Consider a 64-bit computer with a simplified memory hierarchy. This hierarchy contains a single cache and...

    Consider a 64-bit computer with a simplified memory hierarchy. This hierarchy contains a single cache and an unbounded backing memory. The cache has the following characteristics: • Direct-Mapped, Write-through, Write allocate. • Cache blocks are 4 words each. • The cache has 256 sets. (a) Calculate the cache’s size in bytes. (b) Consider the following code fragment in the C programming language to be run on the described computer. Assume that: program instructions are not stored in cache, arrays are...

  • Operating Systems Questions (Please help if you can) 1. A computer has cache, main memory, and...

    Operating Systems Questions (Please help if you can) 1. A computer has cache, main memory, and a disk used for virtual memory. If a referenced word is in the cache, 20ns are required to access it. If it is in main memory but not in the cache, 60ns are required to load it into the cache (this includes the time to originally check the cache), and then, the reference is started again. If the word is not in main memory,...

  • 5) Given the following memory configuration, assume we want to do compaction with minimum softwar...

    5) Given the following memory configuration, assume we want to do compaction with minimum software to be moved. ob 2 Free 25 K Before compaction instruaction MOV Ae,Bs is at location 65K in Job 2. What is its location 5.1 The same. £280K. 5.3 90K 5.4 45K 5.5 40K Use the following facts to answer questions 6 through 9 below α) Job Iis divided into three pages. P, P1,and P2 of1Kcach. Omember that b). Main memory is divided into eight...

  • Exercise 8.16 You are building a computer with a hierarchical memory systenm that consists of separate...

    Exercise 8.16 You are building a computer with a hierarchical memory systenm that consists of separate instruction and data caches followed by main memory. You are using the ARM multicycle processor from Figure 7.30 running at 1 GHz (a) Suppose the instruction cache is perfect (i.e., always hits) but the data cache has a 5% miss rate. On a cache miss, the processor stalls for 60 ns to access main memory, then resumes normal operation. Taking cache misses into account,...

  • QUESTION 1 . ______________ allow(s) a computer to invoke procedures that use resources on another computer...

    QUESTION 1 . ______________ allow(s) a computer to invoke procedures that use resources on another computer Pervasive computing Remote procedure calls (RPCs) Cloud computing Global computing QUESTION 2 The simplest example of a neural net is the: CPu perceptron systolic array supervised learning network QUESTION 3 The first company in the world to manufacture and sell what it identifies as a quantum computer is: D-Wave Computers Cray Google Intel QUESTION 4 A ______________ is a collection of distributed workstations that...

  • Introduction: One of the most important uses of pointers is for dynamic allocation of memory. In...

    Introduction: One of the most important uses of pointers is for dynamic allocation of memory. In C++ there are commands that let the user request a chunk of memory from the operating system, and use this memory to store data. There are also commands to return memory back to the O/S when the program is finished using the data. In this lab, we will explore some of the things that can go wrong when using dynamic memory and discuss how...

  • Call stack question! Long one... The call stack is part of main memory that is reserved...

    Call stack question! Long one... The call stack is part of main memory that is reserved for function calling. Like all r memory it is finite, so can be exhausted resulting in a stack overflow. Recursive functions allocate space on the stack for each recursive call: if there are many such recursive calls a stack overflow can result. The questions that follow ask you to investigate recursive functions and stack overflows. Note that when running programs in the Linux terminal...

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