Question d’entretien chez Goldman Sachs

What is a deadlock? What deterministic scheduling algorithm does JRE use? Describe the process. Also asked about user level threads