I am importing an 3rd party library which has some global variables.
The global variables are updated when my script calls functions in the third party library.
But I want to execute multiple instances of my script as thread in parallel in such a way that the global variables should be global only the specific thread.
Each thread needs to have its own copy of global variable.
I am locked...