Homework IV

Due Wednesday, May 18

The intent of this problem is to deepen your understanding of how processes share the CPU. You will be using threads, a special type of processes.

Our introductory example of threads is in the program here. Read the comments, which will explain the basics of threading. Compile and run the program, varying n and the number of threads, before you go any further.

In this assignment, you will write a primitive Web probe. Using a reference list of Web sites, it will repeatedly cycle through the list, timing how long it takes to access each one. The goal of the program is to gauge the current speed of the network. Here are the specs: