Click here to get an A+ paper at a Discount
Advanced Computer Networks ECE-7605 Assignment 04 Maximum Marks: 50 Upload Date: October 15, 2011 Due Date: October 20, 2011 Important Notes: 1. Provide plain ASCII (simple text) files in your submission. All other files will be rejected. 2. Source code should be clean and simple. It should compile/link/execute without error. 3. Cheating will be punished by zero marks being awarded to everyone involved. Submission guidelines: 1. Make a folder on your local drive by your roll no. e.g. Fa-2001-PhDCE-001. 2. Make a sub folder by the name of the assignment you are doing e.g. Assign01. 3.
Advanced Computer Networks ECE-7605 Assignment 04 Maximum Marks: 50 Upload Date: October 15, 2011 Due Date: October 20, 2011 Important Notes: 1. Provide plain ASCII (simple text) files in your submission. All other files will be rejected. 2. Source code should be clean and simple. It should compile/link/execute without error. 3. Cheating will be punished by zero marks being awarded to everyone involved. Submission guidelines: 1. Make a folder on your local drive by your roll no. e.g. Fa-2001-PhDCE-001. 2. Make a sub folder by the name of the assignment you are doing e.g. Assign01. 3. Now put all the files relating to the assignment in the sub folder. 4. Any files which you write must be in ASCII text format. 5. Archive the whole thing using the format Fa-2001-PhDCE-001-Assign01.rar. 6. Email the archive to [email protected] with the subject line like Fa-2001-PhDCE-001-Assign01. 7. Save a copy of the sent email in your email account just in case. 8. Any other instructions may be provided on the group.
1. Read about preforking and prethreading. What is meant by these and how do they improve server performance? (10) 2. Extend both the servers in Assignment 03 so that they are able to handle at most 3 clients at one time. No change in client should be done. (20) 3. Code a simple UDP client/server application. The server will keep track of all incoming messages storing them locally in a file and echoing back the client message with the index number of the message. So if the first client sends “Hello”, the server will return “1. Hello” and for the tenth client “10. Hello”. (20)