The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+15 votes
1.3k 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 (59.5k points)
edited by | 1.3k views
+1
what is interpretation in this question?
+3

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
(a) - (r)

(b) - (p)

(c) - (s)

(d) - (q)
answered by Boss (19.7k points)
edited by
0
@Gate Keeda and @Arjun Suresh : How pointer type is garbage collection.
+5

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

+9
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).
0
Sir, java do this garbage collection bt implicit pointers then?
0
yes @rahul sharma 5
+1
How virtual memory and segmentation are related? Both are different memory allocation techniques.
0
@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?
0
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

39,437 questions
46,622 answers
139,344 comments
57,001 users