Another principle
2019-01-29 本文已影响0人
泓礼
1. 锁涉及的地方,all need to be taken cared of.
synchronized one instance, if other places require the lock?
ensure all possible access to construct complete handling~
2. log necessary
add log of all exception to the callbacks or executable task, as it may be swallowed in the thread.