본문 바로가기 메뉴 바로가기

sondevvvv

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

sondevvvv

검색하기 폼
  • 분류 전체보기 (117)
    • JAVA (54)
      • Clean Code (2)
      • Effective Java (22)
      • Good Code (0)
      • Reactor (2)
      • Netty (4)
      • Memory Analyzer 사용법 (3)
      • Concurrency (2)
    • Spring Framework (13)
      • Spring Framework Documentat.. (0)
      • Spring Cloud (8)
      • Spring Webflux (1)
    • Tomcat (1)
    • AWS (3)
      • Web Server 구축해보기 (3)
    • Database (13)
      • Cassandra (7)
      • DynamoDB (6)
    • 용어 (4)
    • Code Review (4)
    • Kafka (2)
    • IOS (1)
    • Trouble Shooting (13)
    • Zookeeper (0)
    • Avro (4)
    • IDE (1)
      • IntelliJ (1)
    • JPA (1)
    • Algorithm (2)
      • Leetcode (2)
  • 방명록

wait() (1)
Java wait(), notify(), notifyAll() 과 Thread 상태

Object.wait() : 현재 Object Monitor 를 획득하고 있는 Thread 의 Monitor 소유권을 해제하고 Thread 를 WAITING 상태로 만든다. wait() 메서드는 synchronzied 블록 안에서만 호출 가능하다. 중요한 것은 Lock 을 해제하고 Thread 가 WAITING 상태가 된다는 것! Object.notify() : 해당 Object Montior 의 WAITING 상태인 Thread 들 중 하나를 깨운다. 깨어난 Thread 는 Lock 을 얻기 위한 경쟁 상태인 BLOCKED 상태가 된다. Object.notifyAll() : 해당 Object Monitor 의 WAITING 상태인 Thread 들 전부를 깨운다. notify() 와 마찬가지로 깨어난 ..

JAVA 2022. 6. 29. 11:21
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • N+1
  • DyanomoDB
  • rate limit
  • RoutePredication
  • circurit breaker
  • GlobalFilter
  • getBoolean
  • wait()
  • Seperate Chaining
  • custom config data convertion
  • MariaDB
  • Lazy
  • aurora
  • reactor
  • referencedColumnName
  • dynamodb
  • AbstractMethodError
  • mariada-connector
  • msyql-connector-java
  • ConcurrentHashMap
  • Flux
  • mariadb-connector-j
  • RouteDefinition
  • notify()
  • reative
  • notifyAll()
  • ResultSet
  • spring cloud gateway
  • router
  • HashMap
more
«   2026/04   »
일 월 화 수 목 금 토
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바