B.S.W.E. Bachelor of Software Engineering Practice Test
B.S.W.E. Bachelor of Software Engineering Operating Systems & Systems Programming 2
What is the purpose of a semaphore in concurrent programming?
Select your answer
A
To allocate memory dynamically
B
To control access to a shared resource by multiple threads or processes
C
To detect memory leaks at runtime
D
To schedule CPU time for kernel threads
Hint