4.05. Synchronization Mechanism

  1. What is a semaphore? [5G Testbed / AMI | 06-05-2023]
  2. Explain binary semaphore. [INFOBELL]
  3. Is a semaphore based on a signaling mechanism? [Mirafra Technologies]
  4. What is a mutex? Explain. [5G Testbed / AMI | 06-05-2023]
  5. Have you implemented any program using mutex? [5G Testbed]
  6. What is the difference between semaphore and mutex? [5G Testbed / AMI (06-05-2023) / AMI (06-05-2024) / Analogics / Avantel Limited]
  7. Which is better — semaphore or mutex? [INFOBELL]
  8. Explain all synchronization mechanisms between two processes. Have you written any program? [5G Testbed]
  9. Explain about synchronization mechanisms. [Analogics | 14-08-2024]
  10. How did you do synchronization between two processes? Explain. [5G Testbed]
  11. What are the APIs of synchronization mechanisms (sem_init, sem_wait, sem_post, pthread_mutex_lock, etc.)? [Mirafra Technologies]
  12. What is a semaphore and mutex? Explain with a random real-world example and how you would solve it. [AMI | 06-05-2023]
  13. What is deadlock? Explain. [5G Testbed]
  14. How do you prevent a thread from accessing the same shared memory location at the same time? [5G Testbed]
  15. Can two processes acquire a mutex at the same time? [Mirafra Technologies]
  16. What is a semaphore? [Quanint Techsoft / VEM Technology]
  17. What is a mutex? [Quanint Techsoft / Webber]
  18. Difference between semaphore and mutex. Which is better? [Tenacity / Team F1 Network / VEM Technology]
  19. What is a condition variable in mutex? [Team F1 Network]
  20. What is deadlock? How to prevent it? [VoltyIOT / Team F1 Network]
  21. What is scheduling? What are its types? [VEM Technology]
  22. What is a critical section? [Quanint Techsoft]
  23. How many minimum variables are required to be shared between processes to solve the critical section problem? [Truminds]
  24. What is a semaphore in OS? [Webber]
  25. What are synchronization mechanisms? [TeraScale]
  26. Explain semaphore. How did you use semaphore in your project? [TeraScale]
  27. Explain mutex.[TeraScale]
  28. What is a spinlock? [TeraScale]
  29. What is a critical section? [TeraScale]