1. In the context of multithreading, we must pay attention to the problem of synchronization. I have encountered, the program at the beginning of the run, multiple threads read the same configuration file, the following problems occurred: FWK005 parse May is called while parsing.
2. It is important to note that server-side connection with the client, if the server side unexpectedly with the client connected, there may be, server-side has been providing services to clients, resulting in suspended animation, or CPU occupancy rate suddenly become higher. I have encountered, when the client disconnected, the server-side provided the thread is still running, resulting in high CPU usage.
3. Some class sets such as map, is not multi-threaded security, it is necessary to use, collections.synchronized*** the corresponding method to make it into a safe.