

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The requirements for homework 6 in the ece 465: computer networking protocols course taught by prof. B.-p. Paris. Students are tasked with writing a multi-threaded program using sockets for udp communication between a senderthread and a receiverthread. The main thread creates and manages these threads, and once the receiverthread notifies the main thread of receiving three messages, the main thread prints an informative message and signals the threads to exit. This assignment explores thread communication methods and is relevant for the project. Students are advised to read up on posix threads and condition variables for effective thread management and communication.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


ECE 465: Computer Networking Protocols Prof. B.-P. Paris Homework 6 Due: March 20, 2007
Reading Chapter 2 in Kurose and Ross, handouts on programming with C sockets.
Experiments
the receiver and the main thread that naturally supports suspend- ing and waking up the main thread as required. I recommend that you start with the example in the section entitled Waiting and Sig- naling on Condition Variables and simply modify the functionality of the threads in the example.
Turn in the code you developed and a trace showing the messages printed on the screen during program execution. Make sure that each print statement identifies the thread from which it originates.