Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

8.20 (a) Occasionally one encounters the suggestion that a garbage-collected lan

ID: 3716881 • Letter: 8

Question

8.20 (a) Occasionally one encounters the suggestion that a garbage-collected language should provide a delete operation as an optimization: by explicitly delete-ing objects that will never be used again, the pro- grammer might save the garbage collector the trouble of finding and re- claiming those objects automatically, thereby improving performance. What do you think of this suggestion? Explain. Alternatively, one might allow the programmer to "tenure" an object so that it will never be a candidate for reclamation. Is this a good idea? (b)

Explanation / Answer

(a)

When an article is no longer used, the garbage antenna reclaims the underlying reminiscence and reuses it for outlook object share.

This means present is no explicit deletion and rejection memory is given rear to the operating system. Removal of trash records does not affect normal presentation, so this is not a performance optimization.

For the reason of minimizing the effect on presentation, it is also possible to carry out trash collection in the backdrop.

The balance created by the dress in leveling disseminates the be dressed in out stress over the collection of blocks in its place of on some particular hot bad skin. Hence, the larger the recollection density, the slighter the wear out for each cell would be.

(b)

The process of reclaim the dirty pages is as follows, valid page containing data is derivative to a new memory block which has free pages and the elderly block is then completely erased, ready it to be used in future.

though,

as the time wanted to make a copy of valid page and erase the entire block be able to be high, some file systems have the concept of trash collection in a background process perform when the device remains idle.

To conclude we can circumstances that reducing the amount of Aggressive Garbage collection is a significant optimization in terms of routine.

In a write operation, a large amount of time is spent of finding free chunk to write data, and Garbage Collections are perform whenever there is scarcity of without charge blocks to convert delete blocks into erase blocks.

Therefore by reducing the amount of Aggressive junk Collections in write function, the performance of disk put in writing is also enhanced.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote