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
postnew [5]
3 years ago
11

Suppose we have two threads inserting keys using insert() at the same time. 1. (5 points) Describe the exact sequence of events

(i.e, the order that the statements in insert() would have to be run by each thread) that results in a key getting lost.
Computers and Technology
1 answer:
Leona [35]3 years ago
8 0

Answer:

Say you have a key in a dictionary, or a key in a 2-d list. When you insert(), you are destructively iterating the original list and modifying it to reflect the insert() component. In order for the key to get lost you would have to do say insert(len: :1) which would remove the second key and therefore cause it to get "lost" because it will be destructivsly removed from its assignment and replaced by whatever you choose to insert.

Rate positively and give brainlist

You might be interested in
In the scene where we see Don and Lina acting in a silent film (beginning at time code 11:05), describe the silent film. How is
asambeis [7]
Well, it was black and white…and it was silent. That's a lot different from today because we have surround sound, color TV, 3D/4D etc.

(I wish there was more to go on, but from time code 11:05 it only lasted for a few seconds. Hope this helps!)

4 0
4 years ago
What is output by the code below?
PSYCHO15rus [73]

Answer: I think it is a

Explanation:Sorry if it it is worng

3 0
4 years ago
Create a class called Date that includes three pieces of information as instance variables—a month (type int), a day (type int),
Strike441 [17]

Answer:

public class Date {

   private int month;

   private int day;

   private int year;

   // Constructor

   public Date(int month, int day, int year) {

       this.month = month;

       this.day = day;

       this.year = year;

   }

   //Getters and setter

   public int getMonth() {

       return month;

   }

   public void setMonth(int month) {

       this.month = month;

   }

   public int getDay() {

       return day;

   }

   public void setDay(int day) {

       this.day = day;

   }

   public int getYear() {

       return year;

   }

   public void setYear(int year) {

       this.year = year;

   }

   void displayDate(){

       System.out.println(getMonth()+"/"+getDay()+"/"+getYear());

   }

}

//Test Class

class DateTest {

   public static void main(String[] args) {

       Date dateOne = new Date(12, 25, 2019);

       dateOne.displayDate();

   }

}

Explanation:

  • Using Java programming Language
  • Create the Date class with the instance variables (Month, day and year) all of type int
  • Create the the constructor to initialize all the instance variables
  • Create getters and setters for all the instance variables
  • Create the displayDate() method which uses string concatenation along with the get() method of all the instance variables
  • Create a test class that initializes an instance of the of the Date class
  • Call the method displayDate on the instance of the class created

3 0
3 years ago
3 names of screw drivers
ivanzaharov [21]
Cross-head cross-point cross recessed
3 0
3 years ago
Read 2 more answers
How do you handle sensitive data?
arlik [135]

  1. <em>Take stock. Know what personal information you have in your files and on your computers.</em>
  2. <em>Scale down. Keep only what you need for your business.</em>
  3. <em>Lock it. Protect the information that you keep.</em>
  4. <em>Pitch it. Properly dispose of what you no longer need.</em>
  5. <em>plan </em><em>ahead</em>

<em>hope </em><em>it</em><em> helps</em>

7 0
3 years ago
Other questions:
  • You have implemented a network where hosts are assigned specific roles, such as for file sharing and printing. Other hosts acces
    7·1 answer
  • according to the National Automobile Dealers Association, a single dealership may employ people with as many as 57 different A.
    6·1 answer
  • Which of the following areas of study have been instrumental in shaping the development of HCT?
    6·1 answer
  • What is the biggest difference between technical communication and the other kinds of writing you have done?
    13·1 answer
  • A + B (AC (B +C’) D) = A + BD
    10·2 answers
  • Manipulating graphic images to perform a command has replaced the ____ user interface.
    8·1 answer
  • Which of the following statements best describes the relative amount of content held by digital libraries vs. the amount held by
    12·1 answer
  • What are like arms surrounding all the other code blocks?
    11·2 answers
  • Check the attachment :)​
    10·1 answer
  • Que es el internet...
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!