I use the proprietary library.
In the main()
class, I create an instance of the Thread-safe configurated
class from this library.
Then, in multitrading, using this single instance, I run methods of this class with different parameters.
I join()
each created thread. At the end of these methods and the main () method, I have the necessary result.
However, even after the end of the main()
method, the cursor continues to blink on the command line, indicating that the program continues to run.
I believe that these are streams launched by methods of this class (although the methods themselves have completed the work!).
How can I programmatically terminate these threads? I don’t have access to the sources, I cannot refuse this library.