Description: Synchronization process is mostly done by traffic lights. Other mechanisms (whose primary purpose is not synchronization, such as message lines, pipelines, etc.) are rarely used for the synchronization process. "Traffic lights" can also be used with thread (there are special traffic lights for the thread), but the thread most commonly used mechanisms using so-called mutual exclusion. mutexa and conditional variables.
File list (Check if you may need any files):
semafor.c