They asked me this question — what’s the difference between mutex and semaphore during an interview

LORY
6 min readJun 17, 2023

It seems hard for my friend who is a self-taught developer.

Beginning

“Last week they asked me what is multi-threading and if have I ever done anything with that, I answered the question”. my friend said.

“Okay sounds good, hope you will pass it”. I told him.

“But then he asked me how to make sure resources safely be accessed in multi-threading situations”. he said.

--

--

LORY

A channel which focusing on developer growth and self improvement