1
0
Fork 0
mirror of https://github.com/tmrts/go-patterns.git synced 2025-04-06 22:53:35 +03:00
Commit graph

12 commits

Author SHA1 Message Date
Wei Fu
c1b89ad941 Producer Consumer Part
Like serverAccpet, create routine for consumer if there is available
consumer.
2017-03-30 21:21:58 +08:00
Wei Fu
abba91a6ac Producer Consumer Part
Fix a typo.
2017-03-30 17:05:53 +08:00
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
Niranjan Godbole
399a51c7fe concurrency/generator: use inclusive range in iteration
Fixes #23
2017-03-08 16:43:35 +02:00
Tamer Tas
af1dfcd39f concurrency/generators: remove leftover implementation 2016-10-20 06:46:53 +03:00
Domenico Luciani
f7e32625ec concurrency/generator: remove undefined result 2016-10-03 16:55:45 +03:00
Tamer Tas
d717978979 concurrency/generator: merge the source and the pattern files 2016-09-15 11:39:40 +03:00
mehdy
89df9f0955 concurrency/generator: refactor generator pattern 2016-09-15 11:21:51 +03:00
legendtkl
d05638adac concurrency/generator: implement generator pattern 2016-09-15 11:18:16 +03:00
Anthony Atkinson
ce288860af Bounded parallelism markdown. 2016-09-04 13:36:54 -04:00
Anthony Atkinson
40b4ab5963 Parallelism markdown. 2016-09-04 13:36:39 -04:00
Anthony Atkinson
64a675764a Marking undone pattern documentation as TODO and moving files to match naming conventions. 2016-09-03 12:30:28 -04:00