I attended an interview today in which the interviewer asked me the following question :
Is re-entrancy and mutual exclusion thread-safe ? Can you explain why ?
I am relatively new to concurrent programming and could not answer it.. But i said ...
Mutual exclusion is thread safe . But re-entrancy is not and that is the reason why we have re-entrant locks .
The interviewer moved on to the next question though to a different area ... I think i messed this one up ...
What is he expecting me to say when he asked me this ?