Hi,
I want to measure how much CPU time a thread has consumed. When the CPU time consumption exceeds a certain limit (specific to that thread), I want to raise an interrupt. Please suggest me how can I do it efficiently?

Thanks.