File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -846,7 +846,7 @@ Example of using barriers::
846846 summarize(ballots)
847847
848848 all_polls_closed = Barrier(len(sites))
849- for site in sites(get_votes(site)) :
849+ for site in sites:
850850 Thread(target=get_votes, args=(site,)).start()
851851
852852In this example, the barrier enforces a rule that votes cannot be counted at any
@@ -856,10 +856,13 @@ and continue to do work (summarizing ballots) after the barrier point is
856856crossed.
857857
858858See `Barrier Synchronization Patterns
859- <http://parlab.eecs.berkeley.edu/wiki/_media/patterns/paraplop_g1_3.pdf> `_
860- for more examples of how barriers can be used in parallel computing.
859+ <http://parlab.eecs.berkeley.edu/wiki/_media/patterns/paraplop_g1_3.pdf> `_ for
860+ more examples of how barriers can be used in parallel computing. Also, there is
861+ a simple but thorough explanation of barriers in `The Little Book of Semaphores
862+ <http://greenteapress.com/semaphores/downey08semaphores.pdf> `_, *section 3.6 *.
861863
862- (Contributed by Kristján Valur Jónsson in :issue: `8777 `.)
864+ (Contributed by Kristján Valur Jónsson with an API review by Jeffrey Yasskin in
865+ :issue: `8777 `.)
863866
864867datetime
865868--------
You can’t perform that action at this time.
0 commit comments