How to execute JUnit tests in parallel?

Is there any alternative solution or plugin to use? I also want to use one JVM with multiple threads.

I want to implement a static counter for a whole test run and if i use Gradle with maxParallelForks there is separate counter in each fork. Can anyone help?