멘토링: 동시성 문제

주제무·2023년 5월 5일
0

소마

목록 보기
5/21

Concurrency Issue

process vs thread

ipc : process 끼리 소통
context switching

Spring Bean

with Singleton Pattern

멀티 쓰레드로 구동되는 tomcat에서 생길 수 있는 문제를 예방하기 위해서 하나의 객체 생성을 보장하는 singleton pattern으로 구성됨

Keyword

  • multi thread
  • tomcat
  • spring boot
  • singleton pattern
  • spring bean
  • concurrency issue
  • lock: pessimistic, optimistic
  • Solution_1: synchronized, pessimistic
  • Solution_2: Volatile, Main Memory
  • Solution_4: Atomic Class
  • Solution_5: ConcurrentHashMap, HashTable, HashMap
  • Solution_6: Immutable Instance

Distributed Lock

  • cloud, servers
  • load balancing
  • unique index
  • Solution_1: Redis, single thread

신입 스택

  • CS
    - 운영체제, 알고리즘, 자료구조

  • 괜찮은 프로젝트 하나

0개의 댓글