Viasat interview question

What is a deadlock, how to prevent it? Scheduling algorithms