How Java volatile prevent instruction reordering
Two roles voliate keywords1, to ensure the visibility of variables: when a modified volatile keyword variable is modified when a thread, other threads can instantly get the results after revision. When a thread writes data to be modified volatile keywor