1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
GREYUIT [131]
4 years ago
10

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

t'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.

Computers and Technology
1 answer:
Pavlova-9 [17]4 years ago
3 0

Answer:

See the pictures attached

Explanation:

You might be interested in
JQuery uses CSS selectors to select elements?
rusak2 [61]

Answer:

jQuery uses CSS selector to select elements using CSS. Let us see an example to return a style property on the first matched element. The css( name ) method returns a style property on the first matched element.

5 0
3 years ago
2. cien-si-mu-ne ..............​
sammy [17]

Answer:

henghour669, what the heck is this saying

Explanation:

5 0
4 years ago
Create a class in JobApplicant.java that holds data about a job applicant. Include a name, a phone number, and four Boolean fiel
Amanda [17]

Answer:

// Here is JobApplicant.java

public class JobApplicant {   // class name

private String name;   // String type private data member/field to hold name of the applicant

private String phoneNum;  // String type private data member to hold phone number of the applicant

private boolean word;  // boolean private data member to check the word processing skill of applicant

private boolean spreadsheet;  // boolean private data member to check the spreadsheets skill of applicant

private boolean database;  // boolean private data member to check the database skill of applicant

private boolean graphics;  // boolean private data member to check the graphics skill of applicant

public JobApplicant(String name, String phNum, boolean wrd, boolean sprdsht, boolean db, boolean graph){  //parameterized constructor that accepts values for each of the fields

this.name = name;  

this.phoneNum = phNum;  

this.word = wrd;  

this.spreadsheet = sprdsht;

this.database = db;  

this.graphics = graph;  }  

public String getName() {  //accessor get method for name field

return name;  }  

public String getPhoneNum() {   //accessor get method for phoneNum field

return phoneNum;  }  

public boolean getWord() {   //accessor get method for word skill

return word;  }

public boolean getSpreadsheet() {   //accessor method for spreadsheet skill

return spreadsheet;  }

public boolean getDatabase() {   //accessor get method for database skill

return database;  }

public boolean getGraphics() {   //accessor get method for graphics skill

return graphics;   }  }

                     

Explanation:

// Here is the TestJobApplicants.java

public class TestJobApplicants {   // class name

public static void main(String[] args) {  //start of main() function

JobApplicant applicant1 = new JobApplicant("applicant1", "123", true, true, true, false);  //creates object of JobApplicant class named applicant1 and instantiate it by using constructor of JobApplicant. Here the name field is set to applicant1, phoneNum is 123, the skills word, spreadsheet and database is set to true while skill graphics is set to false

JobApplicant applicant2 = new JobApplicant("applicant2", "456", true, true, true, true);  //creates another object i.e. applicant2 of JobApplicant class and passes values of each field of the class to the constructor of class

JobApplicant applicant3 = new JobApplicant("applicant3", "789", true, false, false, true);  //creates another object for other applicant i.e. applicant23 of JobApplicant class and passes values for each field of the class using constructor of class

isQualified(applicant1);  //calls isQualified boolean method by passing object applicant1 to it in order to determine whether applicant is qualified for an interview

isQualified(applicant2);  //calls isQualified method to determine whether applicant2 is qualified for an interview

isQualified(applicant3); }   //calls isQualified method to determine whether applicant3 is qualified for an interview

public static boolean isQualified(JobApplicant applicant) {  //boolean method to determine if applicant is qualified for interview

 int skills = 0;  //initializes the skills count to 0

 boolean isQualified;  //boolean variable whose value determines if applicant is qualified for interview

 final int requireSkills = 3;  //at least 3 skills are required so the maximum value of skills is 3 and this is assigned to requireSkills variable

 if(applicant.getWord())  /*The applicant object is used to call method getWord() which returns the current value of word field (true/false) for the current applicant and if condition checks if applicant has word processing skills. */

  skills++;  //add 1 to the count of skills when above if condition evaluates to true

 if(applicant.getSpreadsheet())  //if applicant has spreadsheet skills

  skills++;  //add 1 to the count of skills

 if(applicant.getDatabase())  //if applicant has database skills

  skills++;  //add 1 to the count of skills

 if(applicant.getGraphics())  //if applicant has graphics skills

  skills++; //add 1 to the count of skills

 if(skills >= requireSkills){  //if the skills count is at least 3 or more

  isQualified = true;  //value of isQualified is set to true when above if condition evaluates to true which means the user is qualified for interview

System.out.println(applicant.getName()+ " is qualified for interview!");}  //displays this message if isQualified is true

 else  //if the value of skills is less than 3

 { isQualified = false;  // isQualified is set to false which means the user is not qualified for interview

System.out.println(applicant.getName()+" is not qualified for interview!");}  //displays this message if isQualified is false

  return isQualified;   }  } //returns the value of isQualified (true/false)

6 0
4 years ago
What setting in Word keeps single lines of a new
Gre4nikov [31]

Answer:

C (Window/Orphan control)

Explanation:

An "orphan" in formatting is a single line of text that is left alone/separated from the rest of the paragraph. Orphan control prevents this from happening by keeping lines together.

3 0
4 years ago
Although “dog.jpg” and “dog.JPG” and “Dog.jpg” and “DOG.JPG” all appear to be the same file, they are not considered the same wh
bonufazy [111]
They are not considered the same when programming web pages on the Internet, because it depends on what opereting system you're using to create web-site. Every OS use different <span>character encoding capable. You can avoid that by entering utf-8 (or smth like that) in your html file.</span>
4 0
4 years ago
Other questions:
  • In normal view, powerpoint's ________ contains buttons such as notes, comments, and view.
    14·1 answer
  • Using the drop-down menu, complete the following questions based on your knowledge of variables. is a value that can be used onl
    7·1 answer
  • The keyboard preferences pane includes a list of keyboard shortcuts.
    8·1 answer
  • Jim works the parts counter for a busy car dealership. When answering the phone, Jim often has trouble answering the customer's
    6·1 answer
  • Dispositivo de computo
    5·1 answer
  • How do I convert years to days on Python. For example, if I were to enter 3 years it should output "You are 1095 days old".
    5·1 answer
  • This is the area that displays icons representing open applications.
    15·1 answer
  • Anything a person writes or creates is __________
    6·2 answers
  • A friend asks you to look over the code for an adventure game and help figure out why it won’t work. Which of these options is s
    5·2 answers
  • Peter has recently bought a media player and a digital camera. He wants to buy a memory card for these devices. Which memory dev
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!