mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-08 07:42:33 +01:00
Author:halw
Date:2011-02-03T00:34:57.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@748 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
[[Property:title|Producer-consumer]]
|
||||
[[Property:weight|-13]]
|
||||
[[Property:uuid|3e350c41-7c32-ead1-b707-e79da9100f38]]
|
||||
=Description=
|
||||
|
||||
The [http://en.wikipedia.org/wiki/Producer-consumer_problem producer-consumer] problem is a classic software concurrency problem. The problem features one or more "producers" and one or more "consumers". All producers and consumers must share access to a "buffer" into which producers insert the products they produce, and from which consumers take the products they consume. The buffer is "bounded", that is, it has a maximum capacity.
|
||||
|
||||
So at any time, the buffer could be empty, precluding any consumer from withdrawing a product. Or the buffer could be full, which would mean that no producer could not produce a new product until a consumer had made space in the buffer.
|
||||
|
||||
=Highlights=
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user