Question

In: Computer Science

A. Answer the following questions: Describe the two general roles of an operating system and elaborate...

A. Answer the following questions: Describe the two general roles of an operating system

and elaborate why these roles are important.

B. What is a process? What are attributes of a process?

C. Describe the three state process model, describe what transitions are valid between the

three states, and describe an event that might cause such a transition.

D. What is the function of the ready queue?

E.. What is the producer consumer problem? Give an example of its occurrence in operating

systems.

Solutions

Expert Solution

A. An operating system is an intermediate layer between hardware and application software.

1. The major role of an operating system is to ensure correct operation of the computer system. Dual mode of operation(User mode and Kernel mode), privileged instructions such as I/O instructions and halt instructions which can be executed only in kernel mode , memory protection,and timer interrupt are basic building blocks used by operating system to achieve correct operation.

2.The second general role of an operating system is to provide resource and memory management. An operating system manages memory by keeping track of what parts of memory are being used and by whom.It allocates and deallocates memory space and also manages space on mass storage devices.

B. A process is a program in execution.It consists of instructions written in machine language.It is an active entity and resides in main memory.It is a dynamic object.

Attributes of a process include Process ID, Program Counter, Process State, Prioirity, General Purpose Registers, List of open files and open devices.

C.Three-state process model is constituted of READY, RUNNING & WAITING. Processes entering the system initially go into the READY state.They leave the system from the RUNNING state. For these three states, the process occupies the space in main memory.

The possible transitions that are valid between the three states are :

  • READY to RUNNING – It takes place when a process is assigned to CPU .
  • RUNNING to READY – It takes place when the time slice of the running process has expired or a process with higher priority is in the ready queue, or when an interrupt arrives on the cpu, the process that is running on the cpu gets preempted.
  • RUNNING to WAITING – It takes place when the process is waiting for some I/O event to happen.
  • WAITING to READY – It takes place when an I/O event is completed and the process has received the signal on which it was waiting.

D. The process that are residing in the main memory and are ready and waiting to execute are kept in ready queue.The queue exists to establish a fair and efficient order for processes to be executed.

PLEASE LIKE THE ANSWER IF YOU FIND IT HELPFUL OR YOU CAN COMMENT IF YOU NEED CLARITY / EXPLANATION ON ANY POINT.


Related Solutions

As an accountant, describe your possible roles in the system development project committee. Elaborate your answer
As an accountant, describe your possible roles in the system development project committee. Elaborate your answer
Answer the following questions in detail : a)Describe on the roles of the CPA firms and...
Answer the following questions in detail : a)Describe on the roles of the CPA firms and the Institute of CPA. Do they share the same roles? Why or Why not? b)Discuss the elements of quality control as it relates to a CPA firm
For the following questions: write a TRUE or FALSE and then elaborate on the answer. The...
For the following questions: write a TRUE or FALSE and then elaborate on the answer. The golden-rule state for an economy with constant population but where the effective supply of labour grows at a steady rate refers to a condition such that consumption of the total population is maximised. The equation, Y = MV/P, implies that, if the velocity (V) does not change when the money supply (M) changes, then the government can raise national income (Y) by printing more...
Pick a general familiar space and answer the following questions: a. Describe the current lighting approach,...
Pick a general familiar space and answer the following questions: a. Describe the current lighting approach, including approximate light levels, availability of daylight, electric lighting approach (type and number of fixtures) and available lighting controls. Discuss whether you think the approach is successful. b..How do the furniture layout and space finishes add to or subtract from the lighting performance? Does space feel ‘cool’ or ‘warm’, over or underlit. c. .What improvements might you suggest to improve the artificial lighting quality...
About the Female Reproductive System and development. answer the following questions: Briefly describe the development of...
About the Female Reproductive System and development. answer the following questions: Briefly describe the development of an egg, oogenesis, in the female reproductive system including the various hormones involved in the process. This may take 5-6 sentences to properly cover the main parts. What is the role of estrogen and progesterone in the development and ovulation of a secondary oocyte? On average, a woman's cycle occurs every 28 days. Describe and differentiate what is happening during the proliferative phase and...
Answer the following two questions in paragraph form: 1. A database system is made up of...
Answer the following two questions in paragraph form: 1. A database system is made up of five major parts. Identify these parts. Provide specifics of what make up these components. 2. A DBMS provides at least nine functions. Identify these functions and provide a brief explanation of each.
Discuss and Elaborate the following questions with Power & Influence (Discuss and Elaborate more with Power...
Discuss and Elaborate the following questions with Power & Influence (Discuss and Elaborate more with Power & Influence, Organisational Behavior, Management and other related topics.) (Word limit of 600 words) If you were in charge, what kind of power bases and influence tactics would you exercise to exert influence over your followers? Use SMART & Nissan, or other related organizations and company, as examples to discuss and illustrate the top two concerns of Power & Influence. What have you learned...
Consider the operating cycle to answer the following questions. Operating Cycle cash-- settle payables -- Account...
Consider the operating cycle to answer the following questions. Operating Cycle cash-- settle payables -- Account Payable-- purchases -- Buy with payables-- inventories -- sales-- accounts receivable -- returned to cash -- (Again the cycle repeat) --- Cash Why might a company want to reduce its cash conversion cycle? (Hint: Consider the financial statement implications of reducing the cash conversion cycle.) How might a company reduce its cash conversion cycle? Examine and discuss the potential impacts on customers and suppliers...
1. Answer the following questions about the pancreas. (a) What is the general role of the...
1. Answer the following questions about the pancreas. (a) What is the general role of the pancreas in digestion? (b) When does the hepatopancreatic duct open? (c) What would you guess is the reason that many of the digestive enzymes produced by the pancreas are released as zymogens, rather than as fully functional enzymes? 2. Answer the following questions regarding the large intestine. (a) What is the main substance absorbed from the large intestine? (b) What do you consider the...
Discuss and Elaborate the following questions with Leadership (Discuss and Elaborate more with Leadership, Organisational Behavior,...
Discuss and Elaborate the following questions with Leadership (Discuss and Elaborate more with Leadership, Organisational Behavior, Management and other related topics.) (Word limit of 600 words) If you were in charge, what kind of leadership style (Example: Transactional & Transformational leadership) would you choose to adopt? Why? Use Elon Musk (Co-founder & CEO of Tesla), Anthony Tan (CEO & Founder of Grab) and Tan Hooi Ling (Founder of Grab), or other related organizations and company, as examples to discuss and...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT