Introduction - If you have any usage issues, please Google them yourself
Realize this is a multi-threaded programming code, the code to achieve the freedom to control opening and termination of the two threads, the thread code for the beginner to provide a good learning example