Briefly describe the producer-consumer problem, Operating System

Assignment Help:

Question:

a) Each process is represented in the operating system by a process control block (PCB). The PCB contains many pieces of information associated with a specific process. Describe five pieces of information that can be found in a PCB.

b) Consider Figure 1.0 below, which shows two processes (P0 and P1) being executed on a single CPU system, and answer the questions which follow:

2408_Briefly describe the producer-consumer problem.png

i) What is the difference between an interrupt and a system call and how do they affect the processing of processes P1 and P0?

ii) What is the state of process P1 when it is marked as idle in the diagram?

iii) Considering that process P1 is executed for 10 milliseconds, marked as ‘executing' in the diagram, and completes its execution before it is interrupted. In your opinion what changes will occur in the system, and typically in the diagram.

iv) Describe context switching and identify where it is taking place in the diagram.

c) What is the difference between an independent process and a cooperating process?

d) Briefly describe the producer-consumer problem within the concept of cooperating processes.

e) To allow producer and consumer processes to run concurrently, there must be a buffer for holding items. The buffer will be filled by the producer and emptied by the consumer, and there are two types of buffer available for this purpose. Describe these two types of buffer.


Related Discussions:- Briefly describe the producer-consumer problem

Define deadlock prevention, Define deadlock prevention. Deadlock preve...

Define deadlock prevention. Deadlock prevention is a set of process for ensuring that at least one of the four essential conditions like mutual exclusion, hold and wait, no pr

Explain multi-user based operating system, Multi-user - A multi-user Opera...

Multi-user - A multi-user Operating System permits for multiple users to use the same computer at the same time and/or different times. Below are some instances of multi-user Op

What is the translation look aside buffer (tlb), Translation Look aside Buf...

Translation Look aside Buffer In a cached system, the base addresses of the last few indexed pages is maintained in registers named the TLB that adds in faster lookup. TLB has

Operating system design, You are required to study the important system com...

You are required to study the important system components, including important data structures, important functions and algorithms, and the various organizational, structural, logi

Determine the scheduling technique, The scheduling technique in which CPU i...

The scheduling technique in which CPU is allocated to the process with least CPU-burst time is known as  Shortest job first Scheduling is a scheduling technique in which CPU i

Provide two programming examples of multithreading, Normal 0 fa...

Normal 0 false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4 Provide two programm

What is multiprogramming, What is Multiprogramming? Multiprogramming is...

What is Multiprogramming? Multiprogramming is the capability of am operating system to support multiple applications running concurrently. Multiprogramming simply means that an

Deadlock prevention-resource allocation graph allocation, Explain Deadlock ...

Explain Deadlock Prevention-Resource allocation graph allocation Resource allocation graph algorithm :  Using this algorithm we are able to actually know if there exists in th

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd