midterm_2005_Spring_questions

midterm_2005_Spring_questions - IEG4180 NETWORK SOFTWARE...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
IEG4180 Network Software Design and Programming Page 1 IEG4180 N ETWORK S OFTWARE D ESIGN AND P ROGRAMMING DEPARTMENT OF INFORMATION ENGINEERING THE CHINESE UNIVERSITY OF HONG KONG MID-TERM EXAMINATION 2004/2005 TERM 2, TIME ALLOWED: 1 HOUR 30 MINS (A NSWER ALL QUESTIONS . TOTAL 100 MARKS . N OTE : K EEP YOUR ANSWERS CONCISE AND TO THE POINT . M ARKS WILL BE DEDUCTED FOR IRRELEVANT ANSWERS .) 1. Synchronous Sockets Programming (40 marks) Consider developing a new concurrent-server-type network application to run in the Windows operating system. (a) Briefly explain how to implement the concurrent server (i.e., serving multiple connections simultaneously) using blocking I/O. (4 marks) (b) Another possibility is to use non-blocking I/O and polling. Is this a good choice? Explain briefly. (4 marks) (c) For blocking system calls such as connect() the blocking time can vary in different scenarios. Give and briefly explain: one scenario where connect() will block for a short time, and a second scenario where connect() will block for a longer time. (8 marks)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/18/2010 for the course INFORMATIO IEG 4180 taught by Professor Jacky.b.lee during the Spring '09 term at CUHK.

Page1 / 2

midterm_2005_Spring_questions - IEG4180 NETWORK SOFTWARE...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online