how to stop a thread?

How can I stop a thread in time which runs in a
forever and big loop?
For example, in the loop the thread may be waiting for
the return of select(), a complex calculation function
or time-out, can I inturrupt it and made the thread
stop just like a signal do ?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]