producer consumer example in concurrency