강의

멘토링

로드맵

Inflearn Community Q&A

jinsdew0117's profile image
jinsdew0117

asked

Operating System Dinosaur Book Lecture

05. Inter-process Communication: Chapter 3. Processes (Part 3)

Blocking Send에 대한 궁금한 점이있습니다.

Written on

·

221

0

Blocking Send 하는 경우에, 다른 프로세스에서 Receive가 완료되어야 Blocking Send의 작업이 종료되고 제어가 돌아오나요?

메시지 패싱방식이라, Send만 완료되어도 다시 제어가 돌아와야하는거 아닐까 하고 궁금합니다.

운영체제동시성

Answer 1

0

joonion님의 프로필 이미지
joonion
Instructor

메시지 패싱 방식의 send()가 큐에 메시지를 쓴 이후에 return을 했다면, non-blocking 이라고 할 수 있겠습니다.

다만, send() 이후에 수신 측에서 ack를 줄 때까지 아무 것도 안하고 wait()하면 synchronized 통신이라고 해야 되겠죠.

강의 내용에 애매하게, 혹은, 잘못 설명한 부분이 있는 모양이네요. 

blocking io와 synchronized comm.은 늘 헷갈려요. ^^;

jinsdew0117's profile image
jinsdew0117

asked

Ask a question