How do I stop a thread that waits for long periods (e.g., for input)?
I am sure that in my program I create 100 new threads and when I use isAlive met I read many times that Thread.stop is deprecated and it is unsafe to use it. But Question: I get an error “Green threads not supported” when tried to use -gree The thread constructor since 1.4.1 allows the thread stack size to be specified.