with the set() method and reset to false with the clear() method. The wait() method blocks until the flag is true. The flag is initially false. c