22.07.2013 Views

Download File

Download File

Download File

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

WEEK 1:<br />

Aim: Implement the pipe using fork () /* file name pipe.c */<br />

# include <br />

# include <br />

# include <br />

# define MAXLINE 4096<br />

int main()<br />

{<br />

int n,fd[2];<br />

pid_t pid;<br />

char line[MAXLINE];<br />

if(pipe(fd)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!