Hi,
I was wondering why we were using synchronized block to solve this problem, but then for the next one (which is very similar, right?), we take a Semaphore approach? Would both approach work for each exercice or is there a particular reason we are using different ones in those cases?
Thanks