Run teat in paralel on two emulator

Hello
I have 100 test that i want to run
How i create 2 thread
That thread 1 run 50 thread and thread 2 run 50 thread in two emulator of android .
I want that run un paralel
How did write this in java

with Java use testNG e.g. https://howtodoinjava.com/testng/testng-executing-parallel-tests/