Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

Guarantee mutual exclusion: Only one student may be writing in canvas at any given time.

Prevent lockout: A student not attempting to write a post must not prevent other students from writing a post.

Prevent starvation: A student must not be able to repeatedly come back and edit their post while other students are waiting to write.

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions