C++ task2 multithreading improvement

Замечания 2.1 — 2.5