728x90
역명 pipe
-
Operating System - IPCComputer Science/Operating System 2022. 1. 12. 14:17
IPC IPC란? IPC는 Inter-Process Communication의 약자로 내부 프로세스 간 통신을 의미한다. 위 그림처럼 각각의 프로세스는 완전히 독립된 실행 객체이다. 서로 독립되어 있다는 것은 다른 프로세스의 영향을 받지 않는다는 장점이 있다. 하지만, 독립되어 있는 만큼 별도의 설비가 없이는 서로 간에 통신이 어렵다는 문제가 있다. 이러한 문제를 위해서 커널 영역에서 IPC라는 내부 프로세스 간 통신을 제공하게 되고, 프로세스는 커널이 제공하는 IPC 설비를 이용해서 프로세스 간 통신을 할 수 있다. IPC의 종류 1. PIPE(익명 PIPE) PIPE는 두 개의 프로세스를 연결하게 되고, 하나의 프로세스는 데이터를 쓰기만 하고, 다른 하나는 데이터를 읽기만 할 수 있다. 한쪽 방향으로..