You should be having 2 processes and not 2 threads to be testing that. I am not sure if 2 threads will help because its only one thread that can be executed at a time and time is sliced between threads.