CS476/576

Assignment #5

Due Midnight, Thursday  Dec 4, 2008


Write a Java program with the following descriptions:

NAME

JSocBinTree -  creates a complete binary tree of socket-connected processes.

 

 

SYNOPSIS

 

        java JSocBinTree 

 

 

DESCRIPTION

 

The program behaves exactly like Assignment #4 but instead of processes it uses threads

and it has Swing interface.

 

The Swing interface should allow the user to:

1.    start and end the program

2.    Specify the height of the binary tree.

3.    enter input to the root process and allow the leaf threads to display its output.