79410749

Date: 2025-02-04 06:33:44
Score: 1.5
Natty:
Report link

The issue seems to be with the poll() and take() methods. The Queue.take() is a blocking call and it waits but the other one was throwing a null pointer exception because of which I see that the thread is not in RUNNABLE state and becomes TERMINATED. To fix that I added some extra logic which got me into trouble. Thanks to everyone who took a look at this.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Vinod Krishnan