Samsung Electronics interview question

What's difference between - semaphore vs. mutex - thread vs. procss

Interview Answer

Anonymous

Apr 10, 2013

- a semaphore is a mutex where ownership can be shared between more than one thread (fixed quantity) - A thread shares memory space with the other threads, (meaning, the same variables), while the processes have separate memory spaces and distinct variables