producer consumer with threads dojo solution