CS476/576

Assignment #5

Due Midnight, Wednsday   Nov. 13, 2002



This assignmnet is similar to  Assignmnet #4  except that the messages are sent
using TCP and UDP sockets as shown  below.
 

 

 

Every process sends its two messages (e.g.,
    ---> My label is: 1122    -> PID=8272, PPID=8265 & I am leaf
    <--- Process 1211  is terminated (leaf)
) twice:

First to  its immediate parent using a TCP connection.
Second to a UDP Server process.
 
  • The parent process forwards each message received from a child to its own immedaite parent using a TCP connection and this is repeated until the message reaches the root process. The root process writes all received messages in the procTreeFile.
  • The UDP server display the recieved message on the TTY.

  • To get a feeling and gain more details about the specification
    of this program, execute my own solution under:
    /home/cs476/public_html/fall02/assignments/a5/wahab/procTree

    Examples:

                See script of using this  command.