Pergunta de entrevista da empresa Marshall Wace

How do read-write mutex locks work?