PCB(Process Control Block) 운영체제가 프로세스들을 관리하기 위해 사용하는 자료구조이다. 운영체제는 PCB 자료구조를 통해 프로세스 제어 및 관리(스케줄링, 종료, fork 등)를 한다. 아래 사진은 PCB가 갖는 데이터 구조이다. - process state : 프로세스의 상태(new ready waiting, running, terminated) - process number : PID - program counter : PC 레지스터 값(다음에 실행시킬 Instruction의 주소) - registers : 프로세스가 스케줄링되어 있던 CPU의 레지스터의 값(Context Switching시 사용됨) - memory-limits : 프로세스에 할당된 메모리 제한 정보(페이지 테이..
쓰레드 생성 과정 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..
- Total
- Today
- Yesterday
- go
- Linux
- ci/cd
- 쿠버네티스
- container
- Java
- Stream
- 카프카
- docker
- 컨트롤러
- db
- github actions
- rolling update
- jvm
- LFCS
- Kubernetes
- CICD
- GitOps
- RDB
- 코틀린
- argocd
- Non-Blocking
- helm
- spring
- 우분투
- golang
- ubuntu
- K8s
- kafka
- Controller
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |