monitor / readers-writers / second solution