Question: 3. This question is about garbage collection (GC). (a) What does GC do? How do languages without GC (for example C and C++) deal
3. This question is about garbage collection (GC). (a) What does GC do? How do languages without GC (for example C and C++) deal with the problem GC solves? [10 marks] (b) Reachability of memory is an important concept in GC. Explain what it [10 marks] means. (c) Explain how a mark-and-sweep garbage collector works. (d) Explain how a stop-and-copy garbage collector works. [15 marks] [15 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
