Skip to content

Commit a86d2f5

Browse files
committed
20241219 context switching 연습
1 parent 73540bd commit a86d2f5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/io/concurrency/chapter01/exam02/ContextSwitchExample.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
package io.concurrency.chapter01.exam02;
2-
2+
/*
3+
* 컨텍스트 스위칭
4+
*
5+
* 프로세스 혹은 스레드 간의 작업 도중에 I/O 혹은 오버헤드가 발생하는 경우, 다른 작업과의 변환을 진행한다.
6+
*
7+
* 해당 과정에서 기존 PCB 혹은 TCB 정보를 삭제하고 캐시를 비운 후, 새로운 PCB 혹은 TCB 정보로 변경된다.
8+
* */
39
public class ContextSwitchExample {
410
public static void main(String[] args) {
511

0 commit comments

Comments
 (0)