The question itself is vague.
I deleted the latter answer for a few reasons:
- It doesn't talk about any specific implementation; its utility goes only so far as someone who hasn't heard of the "Producer-Consumer" pattern.
- It tells the user to "read a book on multi-threading." That's (at best) an unhelpful statement.
The former answer (that you downvoted) had at least two upvotes prior to your downvote. It provided references to specific implementations for the OP to look at.
It wasn't a great answer, but it was far better than the one I deleted. It was also accepted. If I deleted that, there'd literally be no information for anyone from Google. That's not in keeping with our mantra to not delete useful content.
In the future, if you find yourself flagging multiple answers on a question, it would be preferable to vote to close the question (especially if it is the source of bad answers), or if you can't do that, flag the question for closure.
You flagged the answers as 'not an answer'. I could see the "read a book on Multithreading" to not be an answer; but the upvoted accepted answer definitely addressed the question asked. It would have been inappropriate to accept the "not an answer" flag.