Java_exception if the thread is interruptedexchange_time e x t u is similar to exchange e x, except that the
current thread will at most wait for t (time value whose unit is
u); see
exchange(...) .Java_exception if the thread is interruptedJava_exception if time has elapsed with no exchange