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

What are the necessary conditions for deadlocks?, What are the necessary co...

What are the necessary conditions for deadlocks? 1. Mutual exclusion :  Only one process at a time is able to use the resource. 2. Hold and wait :  A process should be holdi

What is process migration, Question: (a) Describe blocking and non-bloc...

Question: (a) Describe blocking and non-blocking types of inter-process communication. What is easier to implement and why? Discuss their relative advantages and disadvantage

Define analysis for syntactic structure of source statement, An analysis, w...

An analysis, which defines the syntactic structure of the source statement, is known as Syntax analysis defines the syntactic structure of the source statement

We can view an operating system as a resource allocator, We can view an ope...

We can view an operating system as a resource allocator. Explain. We can outlook an operating system as a resource allocator. A computer system has Many resources (software and

What is a relocatable program, What is a Relocatable program? The Reloc...

What is a Relocatable program? The Relocatable programs can be loaded almost anywhere in memory.

What is meant by context switch, What is meant by context switch? Switc...

What is meant by context switch? Switching the CPU to another process needs saving the state of the old process and loading the saved state for the latest process. This task is

What is meant by demand paging? explain, What is meant by demand paging? Ex...

What is meant by demand paging? Explain. Demand paging is a technique to implement virtual memory. In demand paging simply when a page is required it is brought into memory. As

How file record length should be chosen, How File record length should be c...

How File record length should be chosen File record length should be selected to match the data characteristics

Ipc, explain in detail about ipc in linux

explain in detail about ipc in linux

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