I need to run two threads parallel.
1) PrimeThread which calculates prime numbers from 1 to 100. 2) evenThread which calculates even numbers from 1 to 100.
I had implemented logic of primes and evens. Don't focus on it. My question is,
I want to print numbers in following manner. 10 primes 10 evens 10 primes 10 evens and rest of them.
Is that possible???
I used sleep() method but it doesn't work. please help me. Thanks.