
The four memory allocation algorithms (in the scheme of dynamic partitioning placement) are:
i. First-Fit – in the linked list of available memory addresses, we place the data in the first entry that will fit its data. Its aim is to minimise the amount of searching, but leads to external fragmentation later on.
ii. Next-Fit – similar to first fit, but instead of searching from the beginning each time, it searches from the last successful allocation. Greatly reduces the amount of searching but leaves external fragmentation at the beginning of memory.
iii. Worst-Fit – traverses the memory and gives the partitions as large spaces as possible – to leave usable fragments left over. Needs to search the complete list and such is a poor performer.
iv. Best-Fit – carefully scours the memory for spaces that perfectly fit the RAM we want. However, the
search is likely to take a very long time.
We most commonly use first-fit and next-fit in practise. They're easier to implement and are faster to
boot.
Titany answered the question on April 26, 2022 at 12:00
-
Filesystems can support sparse files, what does this mean? Give an example of an
application's file organisation that might benefit from a file system's sparse file...
(Solved)
Filesystems can support sparse files, what does this mean? Give an example of an
application's file organisation that might benefit from a file system's sparse file support
Date posted:
April 26, 2022
.
Answers (1)
-
Interrupt disabling and enabling is a common approach to implementing mutual exclusion,
what are its advantages and disadvantages?
(Solved)
Interrupt disabling and enabling is a common approach to implementing mutual exclusion,
what are its advantages and disadvantages?
Date posted:
April 26, 2022
.
Answers (1)
-
What is a critical region? How do they relate to controlling access to shared resources?
(Solved)
What is a critical region? How do they relate to controlling access to shared resources?
Date posted:
April 26, 2022
.
Answers (1)
-
Enumerate the advantages and disadvantages of supporting multi-threaded applications
with kernel-level threads
(Solved)
Enumerate the advantages and disadvantages of supporting multi-threaded applications
with kernel-level threads
Date posted:
April 26, 2022
.
Answers (1)
-
Describe how a multi-threaded application can be supported by a user-level threads package. It may be helpful to consider (and draw) the components of such...
(Solved)
Describe how a multi-threaded application can be supported by a user-level threads package. It may be helpful to consider (and draw) the components of such a package, and the function they perform
Date posted:
April 26, 2022
.
Answers (1)
-
Describe the three state process model, describe what transitions are valid between the
three states, and describe an event that might cause such a transition
(Solved)
Describe the three state process model, describe what transitions are valid between the
three states, and describe an event that might cause such a transition
Date posted:
April 25, 2022
.
Answers (1)
-
Name three non electronic tools that were used before the invention of electronic computers.
(Solved)
Name three non electronic tools that were used before the invention of electronic computers.
Date posted:
July 23, 2021
.
Answers (1)
-
You have realized that your floppy disk is limited in storage space and you would wish to create more space.
Which tool in Windows would you...
(Solved)
You have realized that your floppy disk is limited in storage space and you would wish to create more space.
Which tool in Windows would you use?
Date posted:
July 23, 2021
.
Answers (1)
-
Define the start menu and explain the common start menu items.
(Solved)
Define the start menu and explain the common start menu items.
Date posted:
July 23, 2021
.
Answers (1)
-
Outline the factors that dictate how an Operating system organizes information.
(Solved)
Outline the factors that dictate how an Operating system organizes information.
Date posted:
July 23, 2021
.
Answers (1)
-
Name and explain three types of human computer interfaces.
(Solved)
Name and explain three types of human computer interfaces.
Date posted:
July 23, 2021
.
Answers (1)
-
State the disadvantages of command line interface.
(Solved)
State the disadvantages of command line interface.
Date posted:
July 23, 2021
.
Answers (1)