Once a deadlock is detected, DB2 chooses a "victim" and cancels it to resolve the deadlock with the other application(s). The deadlock detector runs every 10 seconds by default.
To trap information about a deadlock, the best way is to set up a deadlock event monitor. See the Command Reference manual.