Consider a producer process prime-generator produces prime numbers randomly that are
displayed by a consumer process called prime-sorter . prime-sorter will display the prime
number if it is greater than the previously displayed number. You have to write a
multithreaded Java program that should work as follows: user will run the program and will
enter two numbers (No_of_Iteration, Size_of_Buffer). The program will then create two
different threads for the producer/consumer processes and call them randomly.