A barrier implementation using signal from Agmat http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?message=13947398&cat=46&thread=153049&treeDisplayType=threadmode1&forum=739#13947398