What is the performance cost of calling Thread.isInterupted()?

Posted by Michael Barker on Stack Overflow See other posts from Stack Overflow or by Michael Barker
Published on 2010-04-25T09:12:06Z Indexed on 2010/04/25 9:23 UTC
Read the original article Hit count: 125

Filed under:
|
|

From the java sources, it look like to drops into native code. Is the cost roughly equivalent to a volatile read or does it need to acquire a lock of some type?

© Stack Overflow or respective owner

Related posts about java

Related posts about multithreading