Fragen im Vorstellungsgespräch bei Elastic: When does a deadlock occur?... | Glassdoor.de

Frage im Vorstellungsgespräch

Java Engineer-Vorstellungsgespräch Remote, OR (Vereinigte Staaten von Amerika)

When does a deadlock occur?

Antwort

Antwort im Vorstellungsgespräch

4 Antworten

0

When the locks are accessed in wrong order. Basically one thread picks lock A first and lock B after, while at the same time another thread picks lock B first and lock A after. This can be solved by comparing the participating objects system hashcodes and re-ordering the locks accordingly.

Bewerber im Vorstellungsgespräch am 21.07.2017
0

When a thread that has acquired an lock on a particular resources for its task execution and at the same time when an another thread wants to access the same resources for its task execution then at that situation deadlock occurs.

Niket Athani am 20.01.2019
0

Do you have a question about Elastic? Don't ask just anyone for information, ask an employee from Elastic. They're all waiting at Rooftop Slushie.

https://wwww.rooftopslushie.com

Anonym am 15.07.2019
0

This looks so good:

bit.ly/faang100

Anonym am 16.10.2019

Antwort oder Kommentar posten

Um dies zu kommentieren, bitte anmelden oder Konto anlegen.