1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
krok68 [10]
4 years ago
4

Consider a swapping system in which memory consists of the following hole sizes in memory order: 10 MB, 4 MB, 20 MB, 18 MB, 7 MB

, 9 MB, 12 MB, and 15 MB. Which hole is taken for successive segment requests of (a) 12 MB (b) 10 MB (c) 9 MB for first fit? Now repeat the question for best fit, worst fit, and next fit.
Computers and Technology
1 answer:
Nesterboy [21]4 years ago
7 0

Answer:

First Fit - Allocated Memory 20 MB, 10 MB, and 18 MB.

Next Fit - Allocated Memory 20 MB, 18 MB, and 9 MB.

Best Fit - Allocated Memory 12 MB, 10 MB, and 9 MB.

Worst Fit - Allocated Memory 20 MB, 10 MB, and 15 MB.

Explanation:

Memory Management Systems basically have four types - First Fit, Next Fit, Best Fit and Worst Fit. These memory systems work differently to allocate the memory in operating system.

<u>Given-</u>

We have memory sizes - 10 MB, 4 MB, 20 MB, 18 MB, 12 MB and 15 MB.

and we have to allocate these queued requests - 12 MB, 10 MB and 9 MB.

<u>First Fit Method -</u>

In the first fit process starts with the very first memory hole and it checks that memory should be allocated in the memory size as whole.

So that the First fit will be 20 MB, 10 MB, and 18 MB.

<u>Next Fit Method -</u>

  • Next Fit method works similarly to the first fit. the first step in both the methods is same. but in the next fit, in the second step it put the pointer on the previous allocated memory and then start allocating the next one just after that.
  • Advantage of next fit is you need not to search from the beginning again and again.

Thus, the allocation in next fit is 20 MB, 18 MB, and 9 MB.

<u>Best Fit Method -</u>

As the name tells, in this method it go thorough the entire list and tries to find the best allocation with minimal internal fragmentation.

Thus, the best fit allocation is 12 MB, 10 MB, and 9 MB.

<u>Worst Fit Method - </u>

  • The Worst fit method is totally opposite to the best fit method. in this method it tries to find the maximum internal fragmentation.
  • in best fit and the worst fit one thing is same that both the process search the entire list again and again.

So that, the allocation in worst fit will be 20 MB, 10 MB, and 15 MB.

I hope it worked for you!

You might be interested in
________ is the process the compiler uses to divide your source code into meaningful portions; the message means that the compil
Nesterboy [21]

Answer:

Parsing is the process uses to divide your source code into meaningful portions; the message means that the compiler was in the process of analyzing the code when the end of the file was encountered prematurely

Explanation:

In parsing process  the parser in compiler breaks code and data into smaller elements coming from lexical analysis phase.

6 0
4 years ago
The __________ algorithm takes the ciphertext and the secret key and produces the original plaintext
Bad White [126]
The answer is decryption
8 0
3 years ago
If involved in a boating accident causing serious bodily injury or death while boating under the influence, the operator has com
9966 [12]

Answer:

felony

Explanation:

It is an offence on the part of a boat operator who is under the control of alcohol while boating, as such could result in property damage, serious bodily injury or death. Where such leads to bodily injury or deaths, the operator could be convicted for felony while misdemeanor applies to property damage.

There have been a reoccurring boating incidence in the country especially in the state of Florida, which has the highest number of boating fatalities hence created stiff penalties for boating under the influence of alcohol.

While it is adviseable for motorists not to drink and drive, it is also not lawful be under the influence when boating as such could cause injury, deaths or property damage and such operator would receive appropriate penalty depending on the outcome of the incident.

6 0
3 years ago
What are some random fun facts about Technology?
Lana71 [14]

Answer:

i do not know

Explanation:

but it helps to communication

5 0
3 years ago
1.1 Why is primary goal of software development now shifting from
lidiya [134]

is where the term ‘App’ comes from. It is any piece of software that allows us to actually ‘use’ the computer. For example, it may be a word processor, web browser, spreadsheet software or even just a game. Application software relates to the user rather than the hardware

5 0
3 years ago
Other questions:
  • Consider the pseudo-cpu discussed in class. the instruction format is 16 bits, which is subdivided into 4-bit opcode field and 1
    14·1 answer
  • What color is the smartart tolls tab?
    5·1 answer
  • Item 8 Item 8 Shelby Black runs a very successful hair salon in downtown Los Angeles. One of Shelby’s tasks is to input positive
    13·1 answer
  • ¿porque y como surge la informatica y las computadoras
    13·1 answer
  • Which of the following statements about the relationship between hardware and software is true? a) Hardware can be present in in
    9·1 answer
  • Add my sna-p dkarpik58?...
    9·1 answer
  • The way a student prepares for a test or reviews academic material is referred to as
    8·2 answers
  • Working with text in presentation programs is very ____ using text in other applications.
    10·1 answer
  • Demons I shall be your eternal nightmare
    13·1 answer
  • PlanthelogicforLungi’sapplicationusingpseudocode.Thelogicneedstosatisfythefollowingneeds:TheapplicationwillneedtoallowLungitoen
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!