목록Pipe (1)
dev_eun

1. pipe pipes pipe는 유닉스 시스템 IPC에서 제일 오래되었고, 모든 유닉스 시스템에서 지원한다. 가장 간단한 interprocess communication 메커니즘 예시 $ who | wc -l who 명령어의 standard output이 pipe write로 변경됨 wc 명령어의 standard input이 pipe read로 변경됨 pipe() int pipe(int filedes[2]); status return value success 0 error -1 arguments filedes index desc 0 read 1 write FIFO 기준 lseek()이 pipe에서 동작하지 않기 때문에 이 순서는 변경할 수 없다. 2가지 제한 half duplex(read하는 프로세스..
학교/유닉스 프로그래밍
2020. 12. 9. 00:57