1
0
Fork 0
mirror of https://github.com/tmrts/go-patterns.git synced 2025-04-10 04:21:02 +00:00
go-patterns/concurrency
Wei Fu 28cf6c4cfc Add Producer Consumer Part
There are three parts changed:

1. Add producer_consumer.md and update the README.md in root dir.

2. Add producer_consumer package:

  We can use assign tasks to producer after producer starts.

  Producer has limit buffer for task. If the buffer is full and no
  consumer to take, the producer will ignore the task.

  Consumer needs to regiester if it wants to do task for producer.

  All the communication is based on RPC.

3. Add example for producer_consumer package.

  The example will show the case that the buffer of producer is full.
2017-03-30 16:45:16 +08:00
..
producer_consumer Add Producer Consumer Part 2017-03-30 16:45:16 +08:00
bounded_parallelism.go Marking undone pattern documentation as TODO and moving files to match naming conventions. 2016-09-03 12:30:28 -04:00
bounded_parallelism.md Bounded parallelism markdown. 2016-09-04 13:36:54 -04:00
generator.md concurrency/generator: use inclusive range in iteration 2017-03-08 16:43:35 +02:00
parallelism.go Marking undone pattern documentation as TODO and moving files to match naming conventions. 2016-09-03 12:30:28 -04:00
parallelism.md Parallelism markdown. 2016-09-04 13:36:39 -04:00
producer_consumer.go Add Producer Consumer Part 2017-03-30 16:45:16 +08:00
producer_consumer.md Add Producer Consumer Part 2017-03-30 16:45:16 +08:00