Can anyone tell me how do I stop a
thread under the linux O/S.( I am using Red Hat 7.0) . A proven sample code would be of most help. which is, technically, the most correct method to stop threads so that they dont eat resources and block I/O on while while reading from sockets.