This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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 threads 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 into using Jython 2.1 ,it dosent seem to have threading.local().
import wlstModule as wl #External module
wl.connect('xx','xxx,'t3://xxx:7001') #This would update global variable cmo and maybe some other variables in wlstModule
Script B needs to call multiple threads of Script A in parallel and each thread should see its own version of cmo.