Answer:
Encapsulating semaphores basically allowing various codes to implemented in different modules.
Semaphores are used to implement in the synchronization process and give access to different types of variables. Encapsulate semaphore route so that the tasks performed and executed in a single routine.
Semaphore is the variable whose values basically indicates the status in the multitasking system. It is basically used to indicate the software and hardware flag in the system hiding and encapsulating data.