Sempaphore Algorithm Example