69 |
|
* } |
70 |
|
* }}</pre> |
71 |
|
* |
72 |
< |
* Here, each worker thread processes a row of the matrix then waits at the |
73 |
< |
* barrier until all rows have been processed. When all rows are processed |
74 |
< |
* the supplied {@link Runnable} barrier action is executed and merges the |
75 |
< |
* rows. If the merger |
76 |
< |
* determines that a solution has been found then {@code done()} will return |
77 |
< |
* {@code true} and each worker will terminate. |
72 |
> |
* Here, each worker thread processes a row of the matrix, then waits at the |
73 |
> |
* barrier until all rows have been processed. When all rows are processed the |
74 |
> |
* supplied {@link Runnable} barrier action is executed and merges the rows. |
75 |
> |
* If the merger determines that a solution has been found then {@code done()} |
76 |
> |
* will return {@code true} and each worker will terminate. |
77 |
|
* |
78 |
|
* <p>If the barrier action does not rely on the parties being suspended when |
79 |
|
* it is executed, then any of the threads in the party could execute that |