강의

멘토링

커뮤니티

Inflearn Community Q&A

zxaq153953's profile image
zxaq153953

asked

Programming for Us: Intermediate Python (Inflearn Original)

Parallelism 1 - Futures(4-2)

저는 쓰레드가 더 빠른데 왜 그런가요?

Resolved

Written on

·

164

0

ThreadPoolExecutor로 할때 약 0.95초,

ProcessPoolExecutor로 할때 약 1.99초로

쓰레드가 훨씬 빠른데 이건 뭘 뜻하는건가요?

pythondjango

Answer 2

0

IJILKJ님의 프로필 이미지
IJILKJ
Questioner

감사합니다 코루틴 부분에 마지막 추가질문 올렸는데

답변해주실수있을까요? 

0

niceman님의 프로필 이미지
niceman
Instructor

주어진 작업의 환경 및 처리 양식에 따라 무조건 프로세스 또는 쓰레드 누가 빠르다고 할 수 없습니다.

멀티 프로세스간 작업은 서로간의 메모리영역 교환으로 인한 비용이 크기 때문에 일반적으로 멀티 쓰레드 방식이

퍼포먼스가 좋게 나오는 경우도 있습니다.

https://juyoung-1008.tistory.com/47

zxaq153953's profile image
zxaq153953

asked

Ask a question