Please design a produce/consume program, the producer will generate 10 random int numbers(from 1 to 20), every 5 seconds, and the consumer will sort it, remove the duplicated one and print the top 5.

  • queue/channel
  • random
  • sort unique top
  • period/schedule task