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.
网友评论