title: What is the difference between Socket and RPC?
body: <p>What is the actual difference between Socket and RPC (Remote Procedure Call)?</p>
  
  <p>As per my understanding both's working is based on <a href="https://en.wikipedia.org/wiki/Client%E2%80%93server_model" rel="noreferrer">Client–server model</a>. Also which one should be used in which conditions?</p>
  
  <p>PS: Confusion arise while reading <a href="https://www.amazon.in/dp/8126520515/ref=pd_lpo_sbs_dp_ss_2?pf_rd_p=733112647&amp;pf_rd_s=lpo-top-stripe&amp;pf_rd_t=201&amp;pf_rd_i=0470233990&amp;pf_rd_m=A1VBAL9TL5WCBF&amp;pf_rd_r=8JW67WP6F3CD4HHV4WWE" rel="noreferrer">Operating System Concepts by Galvin </a></p>