Redirected
recategorized
2,647 views
1 votes
1 votes

The Operating System of a computer may periodically collect all the free memory space to form contiguous block of free space. This is called:

  1. Concatenation
  2. Garbage Collection
  3. Collision
  4. Dynamic Memory Allocation
recategorized

7 Answers

0 votes
0 votes

ANSWER: B     Garbage Collection

Explanation: 

      

In order to use memory, programs conduct an action called "allocation" where part of the memory is set aside for a particular use. The C malloc() function and its counterpart calloc() are used to allocate memory. When this memory is no longer needed, it is freed with the free() function. The prototypes for both functions are available in stdlib.h. However, as memory is allocated and freed in various locations, the memory can become fragmented. Sometimes requests to allocate memory will fail as a result. The areas that are causing the allocation  problems are referred to as "garbage" for historic reasons. "Garbage collection" is the process of moving allocated memory around to make larger contiguous blocks available (like defragmenting your hard disk). However, due to very low priority for C and C++.
Answer:

Related questions

3 votes
3 votes
3 answers
2
Arjun asked Apr 22, 2018
10,877 views
The following $C$ program:{ fork(); fork(); printf("yes"); }If we execute this core segment, how many times the string yes will be printed?Only once2 times4 times8 times
3 votes
3 votes
2 answers
3
Arjun asked Apr 22, 2018
3,772 views
The difference between a named pipe and a regular file in Unix is thatUnlike a regular file, named pipe is a special fileThe data in a pipe is transient, unlike the conte...