[java] 쓰레드, 동기화, 풀, Runnable, Callable, Future
쓰레드 생성 과정 1. Runnable 인터페이스를 구현한 인스턴스 생성 2. Thread 인스턴스 생성 3. start 메소드 호출 예제코드1 class Solution { final static ThreadLocal threadLocal = new ThreadLocal(); public static void main(String[] args) { Runnable task = () -> { threadLocal.set(1); int num1 = 10; int num2 = 20; String ctName = Thread.currentThread().getName(); System.out.println(MessageFormat.format("num1 + num2 = {0} from {1} and threa..
[ 백엔드 개발 ]/[ Java,Kotlin ]
2022. 4. 6. 21:48
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- GitOps
- db
- Java
- 쿠버네티스
- Linux
- LFCS
- 컨트롤러
- container
- 코틀린
- docker
- ubuntu
- kafka
- github actions
- RDB
- Controller
- CICD
- helm
- Stream
- K8s
- ci/cd
- 우분투
- rolling update
- golang
- argocd
- Non-Blocking
- 카프카
- go
- Kubernetes
- spring
- jvm
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함