RBC interview question

1) Explain what the Producer/Consumer problem is and how you would solve it? 2) Pick any sorting algorithm and implement it?