The operating system uses lists and queues extensively. One of the most common u
ID: 3621587 • 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.Please provide references details
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.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.