Synchronization:

Added spinlock-based synchronization as an alternative to unnamed semaphores.