Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The operating system uses lists and queues extensively. One of the most common u

ID: 3636632 • Letter: T

Question

The operating system uses lists and queues extensively. One of the most common usages of these structures is to hold in an orderly manner the control blocks that represent the tasks that are in various stages of execution. (A task can run, it can wait for an external event such as an input/output operation, or it can be ready to run but held because its priority is not high enough). The control blocks are moved in and out of these stages. Discuss how you would implement these structures. Would you use lists or queues? Please consider aspects of efficiency and robustness.

Explanation / Answer

control block is a data structure. It contains all information for a process to be used for controlling its execution. It contains the information related to the resource allocated to the process. Every process has its own PCB. It should be stored in protected area where the user cannot access it. The information that must be saved usually consists of the following::

process state,program counteretc.

instead making queue making list is better because its size is not fixed . we can also use the sorting as we enter element in the list so by this we can reduce the time taken in sorting.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote