GGYU

크리티컬섹션 처리 본문

프로그래밍/JAVA

크리티컬섹션 처리

GANADARA 2018. 7. 19. 21:31
public int increase() {
synchronized(this) {
return ++count;
}
}

public synchronized int increase() {
return ++count;
}



'프로그래밍 > JAVA' 카테고리의 다른 글

base64 사용법  (0) 2018.07.19
서버/클라이언트 예제  (0) 2018.07.19
thread 사용법  (0) 2018.07.19
threadpool 사용법  (0) 2018.07.19
디렉토리 조회  (0) 2018.07.19
Comments