deadlock and starvation in concurrency 5308720