Question: A bug was discovered in Canvas where the website crashes if 2 or more students are writing a discussion post at the same time. It's

A bug was discovered in Canvas where the website crashes if 2 or more students are writing a discussion post at the same time. It's the weekend and Canvas support is unavailable. The entire class needs to submit a discussion post but the system keeps crashing. Use your creativity and implement a system that ensures only one student is writing a discussion post at any given time. Describe in detail which tools, communication methods, and safeguards are used to ensure the following:

  1. Guarantee mutual exclusion: Only one student may be writing in canvas at any given time.
  2. Prevent lockout: A student not attempting to write a post must not prevent other students from writing a post.
  3. Prevent starvation: A student must not be able to repeatedly come back and edit their post while other students are waiting to write.
  4. Prevent deadlock: Multiple students trying to write a post at the same time must not block each other indefinitely.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!