Hello, friends! Maby anybody help me...In definition of class Poco::Thread, I can not find terminate method, why??Or there is other way to terminate thread? one method - sleep to suspend thread is not right implementation!

cast wrote:one method - sleep to suspend thread is not right implementation!

The purpose of sleep() is not to terminate the thread, so in that sense you are right that it is not right implementation of termination functionality. At any rate, shouting at us about how wrong we are won't get you far. I suggest you reconsider, read the whole article and then come back. If you still hold the same belief, I'd be curious to hear your arguments in favor of it alongside with details of your proposed implementation which avoids the pitfalls described in the mentioned article.