anyone has any idea how is Barrier Synchronization implemented internally in scala? I am guessing it is using Semaphores, but I am wondering how exactly it works, does anyone know?
I guess one naive way to think of this might be to create an array of Semaphores one for each process. Any better / more efficient implementations?
Ok, sorry for this guys, I have found it after all. here it is in case anyone is interested.