Unfortunately, the code is too large, however, I can show you the code of creating actors and batch_and_learn in each thread:
here is the actor initialization:
Screen Shot 2020-08-28 at 12.53.37 pm1086×950 75.6 KB