Named PipesSlide 2Slide 3Named Pipes•Named pipes are less restricted than unnamed pipes and have the advantages:–Have a name that exists in the file system–May be used by unrelated processes–Exist until deleted•To create a named pipe:1. Using UNIX mknod utility2. Using mknod() system call in C code•If a process tries to open a named pipe for read only and no process currently has that file open for reading, the writer waits until the file is open.•Similarly for a writer process.•Named pipes do not work across networks•We need socket to do communication among processes across networks•Reader Program: ftp://ftp.prenhall.com/pub/esm/the_apt_series.s-042/glass_ables_unix-3e/expanded/ch13/reader.c•Writer Program:
View Full Document