The system generates numbers of the form in ascending order. It has 4 kinds of threads:

  1. multiply – multiplies input by number: 2, 3, 5
  2. merge – sorts the input
  3. copy – copies the input
  4. print – prints the input

In the initial state, copy thread has a single input 1.


Technologies Used: Java, Concurrency

Project Links: https://github.com/camilajenny/generation_concurrency