What does it mean to ignore interrupts and respond to interrupts in Java AQS?

in the AbstractQueuedSynchronizer class of Java, there are
acquire
and
acquireInterruptibly
methods.

on the Internet, it means "ignore interrupt" and "respond to interrupt" respectively.

is fascinated by the words and response ignored by . I don"t know what it means.

Mar.13,2021

acquire attempts to acquire resources. If it succeeds, it returns directly. If it is not successful, it enters the waiting queue. The process will not be interrupted by threads and will not respond to external interruptions. SelfInterrupt (); will not interrupt itself until the resources are acquired

.
/**
     * Convenience method to interrupt current thread.
     */
    static void selfInterrupt() {
        Thread.currentThread().interrupt();
    }

acquireInterruptibly supports responding to interrupts

public final void acquireInterruptibly(int arg)
            throws InterruptedException {
        if (Thread.interrupted())
            throw new InterruptedException();
        if (!tryAcquire(arg))
            doAcquireInterruptibly(arg);
    }
Menu