It took me a library of portable threads for C ++. Good people advised to look towards pthread. It turned out that in pthread there is no parameter "priority on which the thread is started".
In this regard, questions arise:
- What is the priority of running threads from pthread?
- Is there in nature a library of portable streams with the parameter "priority, on which the stream starts"?
Sleep's, lowering priority, and similar games improves the result is just an error in synchronization. And how do you explain that the interpreter strangely interferes only with your UI thread, and not with other threads in the system? - VladD