1. "Force" to obtain a singleton object requires a thread-safe approach, in which the method also guarantees thread safety.
Description: Resource-driven classes, tool classes, and Singleton factory classes all need to be noted.
2. "Force" when creating threads or thread pools, specify meaningful thread names to facilitate backtracking on errors.
3. The Force thread resource must be provided through the thread pool, and it is not allowed to explicitly create threads in the app itself.
Description: The benefit of using the thread pool is to reduce the time spent on creating and destroying threads and the overhead of system resources to solve the problem of insufficient resources. If you do not use a thread pool, it can cause the system to create a large number of similar threads that consume memory or "over-switch" issues.
Alibaba-java Development Handbook Experience-one programming protocol-6 concurrent processing