My sites / 21S-COMSCI111-1 / Site info / Final Exam Spring 2021 – Finals week
Spring 2021 – COM SCI111-1 – EYOLFSON
Information
Question 21
Not yet answered
Points out of 2.00
Question 22
Not yet answered
Points out of 3.00
Memory Allocation.
Assume you have a buddy allocator that initially has a single 1024 byte free block. You receive an allocation of 120 bytes.
What is the size of block used for the preceding allocation?
What are the sizes of the free blocks after the allocation and how many are there?
https://ccle.ucla.edu/my/
https://ccle.ucla.edu/course/view.php?id=101241
https://ccle.ucla.edu/course/view.php?id=101241§ion=0
https://ccle.ucla.edu/mod/quiz/view.php?id=3983573
Question 23
Not yet answered
Points out of 2.00
Information
Question 24
Not yet answered
Points out of 2.00
Question 25
Not yet answered
Points out of 7.00
How many bytes are lost due to internal fragmentation for the
120 byte allocation?
Answer:
Assume you have a single 1024 byte free block again, and you receive 180 byte sized allocations.
How many TOTAL 180 byte allocations could a single 1024 byte free block hold?
Answer:
What is the TOTAL amount of internal fragmentation for all your 180 byte allocations with the initial 1024 byte free block. Why is this
amount of fragmentation acceptable?
Question 26
Not yet answered
Points out of 4.00
Assume we only had 128 byte allocation, causing no internal or external fragmentation with the buddy allocator. Why would we still want
to use a slab allocator for only 128 byte allocations?
More
◀ Midterm
Jump to…
Lab 1B Week 1 ▶
https://ccle.ucla.edu/mod/quiz/view.php?id=3875405&forceview=1
https://ccle.ucla.edu/mod/kalvidres/view.php?id=3834460&forceview=1