Question

I am newbie to Java concurrency. I have learned about producer consumer pattern where one producer write on a vector and consumer consumed it from the vector. But I have to make a homework with some different situations where-

  1. Two producers independently write on 2 separate vector - odd and even number.
  2. One consumer read from each of the vector and sum up them.

Can anyone suggest any tutorial that fit with the scenario? Thanks in advance.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top