Слияние кода завершено, страница обновится автоматически
[Description of the task]
Non-linear operations with resources that do not ensure thread safety require adding synchronization
[Solution]
Adding a synchronization block
[Source of the problem]
Automated testing