Handling the Readers and Writers Problem