title: What would be a realworld example of use of a barrier in a multithreaded application?
body: <p>JDK's concurrency package, Boost's thread library, Perl's Thread library (not in Python though) all implement barrier, I haven't come across a need for using a barrier, so wondering what would a typical use case be in multi-threaded applications.</p>