Skip to content

docs: Blocking 방식이 서버에 미치는 영향 설명 문장 개선 #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

praisebak
Copy link

@praisebak praisebak commented Jun 17, 2025

기존

여러 Client 가 접속하는 서버를 Blocking 방식으로 구현하는 경우 -> I/O 작업을 진행하는 작업을 중지 -> 다른 Client가 진행중인 작업을 중지하면 안되므로, client 별로 별도의 Thread를 생성해야 함 -> 접속자 수가 매우 많아짐

개선

여러 Client 가 접속하는 서버를 Blocking 방식으로 구현하는 경우 -> 쓰레드는 I/O를 위해 대기상태로 돌입 -> I/O가 완료되기 까지 대기
-> 쓰레드가 반환되지않고 그 사이 client 요청에 대해서 별도의 Thread를 생성함 -> 접속자 수가 매우 많아질수록 쓰레드 갯수 증가

      - Thread가 I/O 작업 동안 BLOCK 상태에 머무는 구조를 보다 직관적으로 설명
      - "클라이언트 요청 → Thread 생성 → I/O 대기 → Thread 증가 → 컨텍스트 스위칭 증가" 흐름을 단계별로 기술
      - 기존 문장에서 다소 중복된 표현 제거하고, 원인-결과 구조를 명확히 전달
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant