In my spare time, I have been engaged in multi-thread learning. I only want to prepare for the next project. With the optimization, development, and performance considerations of the project, I will gradually use something that I didn't need before and get familiar with first.
Let's put things up first. You are welcome to give us some advice. It has been a long time for us to play with things, and it is definitely not perfect. I hope you can give us some valuable comments (~~)
Approximate Function Description: In order to improve data processing speed, the task queue is handed over to different sub-threads to complete, and the number of new threads to be started is limited, so that too many threads can be regarded as machine shells.
NowThCount = ; MaxThCount = ; RunNum = ; ( (NowThCount == && RunNum == (RunNum == && NowThCount != Thread.Sleep(); ; (NowThCount >= Thread.Sleep(); ; (RunNum > && NowThCount < RunNum-- NewTh = Thread( Console.WriteLine(+ NowThCount++; Console.WriteLine( + Thread.Sleep( Console.WriteLine( + Thread.CurrentThread.ManagedThreadId + NowThCount--; }
Written at the end: I feel that the program is not perfect, will it become abnormal due to special reasons during running, and will it still be in testing .....