SAP interview question

How to solve deadlock for database? TCP vs UDP? HOST?