The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+15 votes

Match the pairs in the following questions by writing the corresponding letters only. 

(a) Buddy system  (p) Run time type specification
(b) Interpretation (q) Segmentation
(c) Pointer type (r) Memory allocation
(d) Virtual memory (s) Garbage collection


asked in Operating System by Veteran (59.4k points)
edited by | 1.1k views
what is interpretation in this question?

Buddy system - The buddy memory allocation technique is a memory allocation algorithm that divides memory into partitions to try to satisfy a memory request as suitably as possible. This system makes use of splitting memory into halves to try to give a best fit.

Interpretation - Run-time (pretty obvious)

Pointer type - Garbage collector dereference the dangling pointers

Virtual memory - Segmentation

1 Answer

+16 votes
Best answer



answered by Boss (19.7k points)
selected by
@Gate Keeda and @Arjun Suresh : How pointer type is garbage collection.

In object-oriented languages with garbage collection, dangling references are prevented by only destroying objects that are unreachable, meaning they do not have any incoming pointers; this is ensured either by tracing or reference counting.

When we do not have any pointer, we can just clear activation record and no need of any garbage collection. But pointers means there should be dynamic memory management. In languages like C this is the job of programmer and he must call free(). Languages like Java, C++ does this automatically using garbage collection. (Java does not have explicit pointers).
Sir, java do this garbage collection bt implicit pointers then?
yes @rahul sharma 5
How virtual memory and segmentation are related? Both are different memory allocation techniques.
@Arjun sir.How can we relate pointer to garbage collection. If we have pointers like in C,but we dont have garbage collection.

In java we have garbage collection but not pointers.

So.what does this match specify?
languages like c++ have garbage collector

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

34,780 questions
41,756 answers
41,399 users