Course Hero Logo

CSE.3100.001.10.24.18.docx - 10/24 Client-server - -...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 2 out of 2 pages.

10/24Client-server-Forking the parent process-The child can carry on its conversation concurrently-The parent can start receiving more “let’s talk” messages-Parent is doing very little-Children do the core of the work-Drawback: high overheadBetter solutions?-Take 1-Multiplexing several IO channels: the select system call-Pro: old school, reliable-Cons: complex-Take 2-Use multiple threads to handle the concurrent socketBlocking and Non-blocking-By default…-Sockets are blocking-Accept-Recv-Send--Meaning-If a call wishes to read data… and there is no data…. →Block-If a call wishes to write in a buffer and buffer is full… → BlockNon-blocking sockets-If configured as non-blocking-These functions do not block-Send-Recv-
End of preview. Want to read all 2 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
N/A
Tags
Flag of the United States, Internet socket, Exit status

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture