CS433/533 Programming Assignment 1: Socket API

This assignment gives you a chance to familiar with the basic Java socket programming interface, Java Thread, Java Asynchronous IO, and Java sleep or (java Timer).
Due: 11:59 PM, Feb. 18, Monday. Please see below for submission instruction.

Part 1. Performance Comparisons and Improvement of HTTP Servers

Please modify the programs below to implement HTTP server in three ways: sequential, multi-thread, and asynchronous i/o. The programs below are samples.

For each approach, the command-line syntax should allow specification of at least port and www_root. You may want to add other switches to help with debugging and configuration.
% java <seqHTTPServer | mtHTTPServer | asyncHTTPServer> -port <port> -www_root <www_root>

We will use http_load (http://www.acme.com/software/http_load/) to test the performance of the servers. All related files are under /home/httpd/html/zoo/classes/cs433/assignments/prog1/

For this part of the assignment, you need to be able to do the following:

Server performance


Part 2. A Concurrent Java TCP Relay Client with Timeout

Submission

Last Update: February 10, 2008 02:04:08 PM -0500