Skip to content

docs: 언어 nodeJS 관련 질문 추가 #31

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

Merged
merged 2 commits into from
Aug 15, 2022
Merged

Conversation

syoungee
Copy link
Contributor

@syoungee syoungee commented Aug 9, 2022

반갑습니다~
nodeJS와 관련된 질문 추가 예정입니다🥰

@syoungee syoungee changed the title dosc: 언어 nodeJS 관련 질문 추가 docs: 언어 nodeJS 관련 질문 추가 Aug 10, 2022
Copy link
Owner

@ksundong ksundong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

안녕하세요~ 소중한 기여 감사드립니다~ 🙇‍♂️

@ksundong ksundong merged commit 309e08d into ksundong:master Aug 15, 2022
Comment on lines +1026 to +1032
<details>
<summary>nodeJS는 싱글 스레드인가 멀티 스레드인가?</summary>
<b>nodeJS는 비동기(Asynchronous)실행 기반의 특수한 멀티 스레드(Multi-thread)모델</b><br/>
Node.js 내부에서의 비동기 실행 구현 방법 중 한 가지(File I/O 파일 입출력 작업에 관한)<br/><br/>
1) 메인 스레드는 빠르게 처리할 수 있는 작업들을 집중해서 ‘혼자' 처리하고,<br/>
2) 파일 읽기와 같이 시간이 오래 걸리는 작업은 다른 스레드에 맡긴다.
</details>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ksundong @syoungee 안녕하세요! Node.js 관련 질문을 읽어보다 보완하고 싶은 부분이 생겨 Comment 남깁니다! 설명하신 것처럼 Node.js 애플리케이션은 단일 스레드에서 실행되고 네트워크 호출, 파일시스템 작업 등은 thread pool에서 실행되는 것으로 알고 있습니다. 특수한 멀티 스레드(Multi-thread)모델 부분에서 오해의 소지가 있을 것 같아서요. 애플리케이션 단에서는 단일 스레드이지만 백그라운드에서는 thread pool을 구성해 작업을 처리한다.~ 정도로 설명을 보완하면 좋을 것 같습니다.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이슈를 남겨주시거나 PR을 남겨주시면 감사하겠습니다~~ 🙇‍♂️

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.

3 participants