Three solutions for the readers-writers problem.