Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- ingress
- Semaphore
- cloud native
- cloud native java
- MSA
- 익명클래스
- 코틀린
- Microservice
- 머신러닝
- Stress test
- kubernetes
- MySQL
- 클라우드 네이티브 자바
- nGrinder
- Adapter 패턴
- spring microservice
- devops
- ansible
- CRD
- 자바
- 동기화
- 쿠버네티스
- Spring
- Algorithm
- 헬름
- 클라우드 네이티브
- decorator 패턴
- 마이크로서비스
- java
- Kotlin
Archives
- Today
- Total
목록CyclicBarrier (1)
카샤의 만개시기
동기화 클래스 3편 - CyclicBarrier
실행중인 쓰레드 내부 원하는 지점에서 대기를 걸어주고 CyclicBarrier 생성자의 파라미터로 넘겨준 값 만큼 await()을 호출하면 대기하고 있던 쓰레드들의 대기를 풀어주는 동작을 할 수 있습니다. private static final int THREAD_CNT = 5; private CyclicBarrier cyclicBarrier = new CyclicBarrier(THREAD_CNT); public class SleepThread implements Runnable { private int id = 0; private Random random = new Random(System.currentTimeMillis()); public SleepThread(int id) { this.id = id;..
Java/POJO
2019. 7. 3. 16:21