Posts

Showing posts from November, 2018

EOS(Embedded Operating System)

Pipes--->                  it is used to transfer data between two processes in FIFO manner. one processes can transfer data without knowing the what other process is doing in other end. Pipes are used in file system for data storage There are two type named  unnamed Syntax for pipe system call pipe(fdptr) fdptr is the pointer to an integer array that will contain two file discriptor  one is for reading and other is for writing kernel assign the inode for pipe from file system designated pipe device using algorithm "ialloc" unnamed pipe who | wc---->internally shell create unnamed pipe can be used for related processes pipe() syscall   named pipe special file(p) --->mkfifo mkfifo cmd ------->mkfifo syscall can be used for non related processes {if(fork()>0) sleep(1000)} it create zombie process Number of times hello printed is equal to number of proces...