Docsity

Basics & Solutions for Client-Server Design & Concurrent Servers, Slides of Computer Programming

Partial preview of the text

Download Basics & Solutions for Client-Server Design & Concurrent Servers and more Slides Computer Programming in PDF only on Docsity!

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

  • Concurrent server
  • What happens to the client when the server crashes? - How can we make the client anticipate the problem? - example1a.c - The client has two places that can block – it may not be able to detect that something is wrong - Solution - I/O multiplexing – check the file descriptor before performing a blocking operation - Mechanism: select

Server crashing