The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+14 votes
994 views

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 (68.9k points) | 994 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

+15 votes
Best answer
A-R

B-P

C-S

D-Q
answered by Veteran (19.6k 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.

https://en.wikipedia.org/wiki/Dangling_pointer

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

32,693 questions
39,293 answers
110,109 comments
36,701 users