in Operating System edited by
4,025 views
24 votes
Match the pairs in the following questions by writing the corresponding letters only.
$$\begin{array}{|ll|ll|}\hline \text{(a)}  &  \text{Buddy system} & \text{(p)} & \text{Run time type specification} \\ \text{(b)}  &  \text{Interpretation} & \text{(q)} & \text{Segmentation} \\ \text{(c)}  &  \text{Pointer type} & \text{(r)} & \text{Memory allocation} \\ \text{(d)}  &  \text{Virtual memory} & \text{(s)} & \text{Garbage collection} \\\hline \end{array}$$
in Operating System edited by
4k views

3 Comments

what is interpretation in this question?
5

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

22

@arch See definition from Galvin.

interpretation:  A methodology that allows a pro-
gram in computer language to be either executed
in its high-level form or translated to an interme-
diate form rather than being compiled to native
code.

Such programs are executed directly at run-time (execution time) without requiring to previously compile them into machine instructions.

1

1 Answer

21 votes
 
Best answer
$(a) - (r), (b) - (p), (c) - (s), (d) - (q)$
edited by

8 Comments

@Gate Keeda and @Arjun Suresh : How pointer type is garbage collection.
1

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

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

Related questions