I have read something about interrupt mask,OS need to save it's state when another thread need to run ,if there is no interrupt mask,a thread interrupt occur when OS save the state, OS may can not save success . is this relate to 'InputStream ' in java not design to response to interrupt? and why?
Asked
Active
Viewed 44 times
0
-
1CPU interrupts and Java thread interrupts are two completely separate mechanisms. – Daniel Pryden Oct 07 '18 at 13:29
-
Not an exact duplicate, but related: https://stackoverflow.com/questions/804951/is-it-possible-to-read-from-a-inputstream-with-a-timeout – Daniel Pryden Oct 07 '18 at 13:35