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.

Respuesta :

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