Skip to content

volatile 关键字的可见性问题 #568

Open

Description

@gqipan

请教一个问题,在while中使用了输出之后,没有使用volatile关键字的变量也是对线程可见的,这是什么原因呢

image

Activity

  1. DonaldY commented on Aug 24, 2017

    @DonaldY
    Contributor

    这个之前就问过了,类似问题issue里有,可以去翻翻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions