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 maintaining data on a per client basis, Define Maintaining Data on a...

Define Maintaining Data on a Per Client Basis Perhaps the most dramatic syntactical programming change for the application developer of client – server applications is maintain

What are the benefits of multiprogramming?, What are the benefits of multip...

What are the benefits of multiprogramming? Responsiveness : Multithreading is an interactive application may permit a program to continue running even if part of it is block

Transferring files from windows to unix, Transferring files from Windows to...

Transferring files from Windows to Unix Be very careful transferring files from Windows to Unix. If you do transfer a file from Windows to Unix open the file, in Unix, using vi

What is the information associated with an open file, What is the informati...

What is the information associated with an open file? Various pieces of information are associated with  an open file which may be: File pointer Disk location of th

Define inter process communication (ipc), The term IPC (Inter-Process Commu...

The term IPC (Inter-Process Communication) defines several paths by which different process executing on some operating system interact between each other.

Define middleware to ease the low-level protocol burden, Define Middleware ...

Define Middleware to Ease the Low-Level Protocol Burden Fortunately, many products are available today to ease the low-level protocol burden on the application programmer. Midd

What are the reasons for process suspension, Q. What are the reasons for pr...

Q. What are the reasons for process suspension? Reasons for process suspension 1.  Swapping 2.  Timing 3.  Interactive user request 4.  Parent process request

Explain the spawnlp functions used in the netware, Explain the Spawnlp Func...

Explain the Spawnlp Functions Used in the NetWare Spawnlp(flags, execName, arg0,...)  The Spawnlp function is used to load  a NetWare executable file (NLM) specified by exec

Define seek time and latency time, Define seek time and latency time. T...

Define seek time and latency time. The time taken by the head to move to the appropriate cylinder or track is known as seek time. Once the head is at right track, it must wait

Explain hierarchical paging, Hierarchical paging Single way is to use a...

Hierarchical paging Single way is to use a two-level paging algorithm, in which the page table itself is also paged. A logical address is separated into a page number and a pag

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