To overcome difficulties in Readers-Writers problem, which of the following statement/s is/are true ?
- Writers are given exclusive access to shared objects
- Readers are given exclusive access to shared objects
- Both readers and writers are given exclusive access to shared objects.
Choose the correct answer from the code given below: