Semaphore Example (synchronization)