Looking for the answer to the question below related to Operating System?
One needs a good practical example of a “producer-consumer” type problem from among the following.
(I) A multithreaded audio server, where a thread writes digitized sound into a circular buffer and another thread reads it over to a web page.
(II) a printer spooler where files are spooled on to the printer queue, to be taken and printed by the printer driver.
(III) a shared data base updated by simultaneous queries.
Which of the following is/are true of such a good practical example?
(a) Only (I) is true
(b) Only (II) is true
(c) Both (I) and (III) are true
(d) Both (I) and (II) above
(e) All are true.
The Correct Answer Is:
- (d) Both (I) and (II) above
I hope you got the answer to your question.