I\'m solving the producer/consumer problem. I have an array which is shared between thread. A producer is writing to the array and a consumer is reading from it. I\'m using