60 likes | 182 Views
Advanced UNIX programming. Fall 2002 Instructor: Ashok Srinivasan Lecture 22. Acknowledgements: The syllabus and power point presentations are modified versions of those by T. Baker and X. Yuan. Announcements. Reading assignment Chapter 27 Sections 27.1 and 27.2 Section 27.6 Chapter 7
E N D
Advanced UNIX programming Fall 2002 Instructor: Ashok Srinivasan Lecture 22 Acknowledgements: The syllabus and power point presentations are modified versions of those by T. Baker and X. Yuan
Announcements • Reading assignment • Chapter 27 • Sections 27.1 and 27.2 • Section 27.6 • Chapter 7 • Sections 7.1 – 7.6 and 7.9 – 7.11 • Project will be announced today • Quiz Monday
Week 8 Topics • Client-Server design • Concurrent server • Programming assignment 3 discussion • Client-server design alternatives • Server with multiplexed I/O • Preforked server
Client-server design alternatives • Server with multiplexed I/O • Preforked server
Preforked server • Main limitation of concurrent server • fork overhead • Instead, prefork N processes and use them forever • See example1.c and example2.c