Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
작업 내용
애플리케이션 레벨에서 적용할 수 있는 4가지 방법으로 동시성을 제어했습니다.
synchronized 사용
synchronized 는 아래 2가지 방법으로 모두 적용하였습니다.
ReentrantLock 사용
발생했던 문제와 해결 과정을 남겨 주세요.
synchronized락을 거는 방식으로 동작을 하기 때문에 멀티스래드 환경에서 동시성을 제어하기에 적절하다는 판단으로 적용했습니다.이번 주차에서 고민되었던 지점이나, 어려웠던 점을 알려 주세요.
synchronized키워드나ReentrantLock을 사용하는 등의 이론적인 방식은 알고 있으나 어떠한 원리로 동작을 하는지 그리고 동시성을 제어하기 위해, 어떠한 상황에서 어떤 동시성 제어 방법을 선택해야 하는지에 대해 명확히 구분하고 있지 못한거 같아 고민이 됩니다. (현업에서 동시성을 고려한 코드 구성을 많이 생각해보지 않아서 그런거 같습니다.)리뷰 포인트
기타 질문