Thank you for the advice, but I have the instruction to write it in C++, so this is a point I cannot change. Only for the scripts, Python should be used. Well, I know a little bit about how to do concurrent programming in Python, and in C++ too, but my problem is that I don't know how to combine these two technologies for the PARBEGIN, PAREND block.