Question d’entretien chez AMD

What is deadlock? How does semaphore work?