You shall write a web tester. It runs from the command line and tests the available throughput for web servers.
Your program takes three parameters ...
- The URL to request
- The number of outstanding requests to make
- How long (in seconds) to run the test
For example, this tests has four simultanious requests to
turing.nmu.edu for the file "/" and sends as many tests as possible for
20 seconds.
randy@euclid: ./webtester http://turing.nmu.edu/ 4 20
I did 374 requests in 20 seconds.
You may use either asynchronus I/O or threads to do this assignment.
I recomend threads. If you use threads you must use locking where
needed!
This program is due before you take the final.