title: How to queue HTTP requests?
body: <p>I am building a multi-threaded HTTP server. This is part of a university course I am taking. The server needs to have a dedicated thread which has to listen to incoming HTTP requests and insert them in a ready queue from where a scheduling thread will assign execution threads.</p>
  
  <p>I don't know how to do that. If anyone could explain the direction in which I should proceed it would be very helpful.</p>
  
  <p>[I had recently asked an unrelated question here: <a href="https://stackoverflow.com/questions/19702253/how-to-parse-http-requests-from-a-c-based-web-server">How to parse HTTP requests from a C based web server</a> ]</p>