|Do you know where your variables are?|
Ignore this 'advice'. It's garbage. (You're foolin' noone.)
Update: I was asked to explain why it is garbage.
It is garbage because
Then, redesign the system so that the threads live forever, retrieving work and doing it until told to stop.
Which is stupid, because that is exactly what the OPs code does.
This guy cannot even read code. It should be possible to take out injunctions against morons like him.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.