Skip to content

[HaveToStudy] thread safety를 보장하기위한 Concurrent Queue 사용하기 #8

Description

@sunshiningsoo

참조 타입을 가지고 있는 데이터의 경우,
데이터를 작성과 동시에 읽게 되면, 다른 쓰레드에서 동시에 한 주소값을 참조하고 있으므로, 잘못된 값을 읽을 수 있기에
이를 값을 제대로 읽을 수 있음을 보장해주는 것을 Thread Safety를 보장한다 라고 함

그리고 이 Thread safety를 위한 방법 중 한가지 concurrent Queue 사용을 공부한다.

REF: https://hello-developer.tistory.com/80?category=951601

Activity

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions