Can you describe how a DBA analyze deadlocks and programmingtechniques to minimize locking problems?