3SFE518 Computer System Organisation - Piping

Authors Avatar

Coursework for:

Computer System Organisation

3SFE518

                                        Malshani Nanayakkara

        2007020

CONTENTS

Introduction – About the Piping        3

Program Listing        4

Screenshots        7

         

ABOUT THE PIPING

        In order to be able to communicate between two terminals, pipes have been used. As pipes are FIFO structure (First In First Out), it is well suited to be used for such an application. Two pipes are created, one used to define a communication channel from the server terminal to the client and the other to define a communication channel from the client terminal to the server terminal. Lets call these two pipes, np1 and np2, where np1 is the connection from the client to the server.

Join now!

        In the program running on the server terminal, the pipe np1 is opened in the read only mode. Thereby, allowing it to read the information being sent by the client terminal. In the program running on the client terminal, the pipe np2 is opened in the read only mode so the information being written by the server can be read by the client. Whenever the information from the pipe is being read, it is temporarily stored in a buffer before being printed out on the screen.

        

...

This is a preview of the whole essay