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

Why do systems stay track of the type of a file, Q. Why do some systems sta...

Q. Why do some systems stay track of the type of a file while others leave it to the user or simply don't implement multiple file types? Which system is "better?" Answer: A f

Explain message passing among systems, Q. Explain Message passing among sys...

Q. Explain Message passing among systems? Communications- Message passing among systems requires messages to be turned into packets of information and sent to the network contr

Illustrate scope of consumer behaviour, Q. Illustrate Scope of Consumer beh...

Q. Illustrate Scope of Consumer behaviour ? Scope of consumer behaviour is extremely wide due to following reasons: >>Ever rising intensifying competition. >>Additional a

Recovery regarding the file system in windows 2000, Write short note on rec...

Write short note on recovery regarding the file system in Windows 2000. In many file systems a power breakdown at the wrong time can damage the file system data structures so s

Linux operation system, wat are the commands used for creating the file hie...

wat are the commands used for creating the file hierarchy

Explain linked allocation, Linked allocation With linked allocation, ev...

Linked allocation With linked allocation, every file is a linked list of disk blocks; the disk blocks might be scattered anywhere on the disk. The directory has a pointer to th

What is meant by the term affinity in processor sheduling, Question: (a...

Question: (a) Answer the following questions based on the code snippet below. 1. int main (int argc, char *argv[]) 2. { 3. 4. pid_t processId; 5. 6. processId =

What are batch systems?, What are batch systems? Early computers were p...

What are batch systems? Early computers were physically huge machines run from a console. The general input devices were card readers and tape drivers. The common output device

Explain the spawnvp function used in the netware, Explain the Spawnvp Funct...

Explain the Spawnvp Function used in the netware Spawnvp(flags, execNmae, argv)   This function executes  similarly to spawnlp( ) except that parameters are passed as a v

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