강의

멘토링

커뮤니티

Inflearn Community Q&A

moonmaria's profile image
moonmaria

asked

GoF's Design Patterns Learned Through Coding

Flyweight Pattern Part 3

플라이웨이트 패턴 3부에서 HashMap 동시성 질문입니다.

Written on

·

252

0

패턴에 대한 주제에서 살짝 벗어난 질문이긴 합니다. 캐쉬 역할을 하는 맵을 HashMap으로 선언하였는데 Thread Safe 하게 만드려면 ConcurrentHashMap 으로 바꾸어야 하는게 맞는지 여쭤봅니다.

java디자인-패턴

Answer 1

0

whiteship님의 프로필 이미지
whiteship
Instructor

네 HashMap은 thread safe 하지 않으니까요.

moonmaria's profile image
moonmaria

asked

Ask a question