Tech Stuff Best Practice: Locking November 18, 2014 Ramona Leave a comment Make a lock as small as possible. Keep a lock as short as possible. Avoid nested locks (multiple locks at the same time). If you can’t avoid nested locks, then always use them in the same order, whenever you need the same locks. No related posts.