Question: Q: Implement the above scenario in java applying number of threads for the best possible solution and compile and print the performance output at least

Assignment - Readers and Writers Problem In shared databases, such as bank balances, or airline seats, there are two classes of users: Readers - never modify database. Writers - read and modify database In these applications, it should be allowed that many readers can access at same time. only one writer can access at same time. Implement the above scenario in java applying number of threads for the best possible solution and compile and print the performance output at least three times for the same program. Thread writerl is WRITING Thread writer1 has finished WRITING Thread reader3 is READING Thread reader2 is READING Thread reader1 is READING Thread reader2 has FINISHED READING Thread reader 3 has FINISHED READING Thread reader 1 has FINISHED READING BUILD SUCCESSFUL (total time: 4 seconds
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
