Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of the following application makes use of a circular linked list ?

  • A.Undo operation in a text editor
  • B.Allocating CPU to resources
  • C.Recursive function calls
  • D.Expression evaluation

Answer: B

A circular linked list is used in allocating CPU to resources (processes), as in round-robin scheduling.

In round-robin scheduling the ready processes are kept in a circular list. The scheduler gives the CPU to one process for a time slice and then simply moves to the next node; after the last process it comes back to the first without any special case, which is exactly what a circular list provides.

Undo operations, recursive function calls and expression evaluation are all classic uses of a stack, since each needs last-in, first-out order, not a circular list.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.