18. What is the purpose of the `semop()` function in System V semaphores, and how does it help in synchronizing processes?
a. Give your understanding of how `semop()` enables synchronization by performing operations like waiting (P operation) and signaling (V operation) on semaphores.
semop() allows process to perform operation on semaphores within a semaphore set , which is essential for process synchronization and controlling access to shared resources
waiting (P Operation )
Decrementing the semaphore value , which may cause the process to block if the value is zero.
signaling (V Operation)
Incrementing the semaphore value, potentially waking up a blocked process waiting on that semaphore.