Threads

Hello, I have a problem. The string is generated and after generation it is converted to a format; in multi-threaded consideration, string conversion occurs only in the first thread.