INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

server: connection vs request - help needed to understand programming theory

server: connection vs request - help needed to understand programming theory

server: connection vs request - help needed to understand programming theory

(OP)
Hello everyone,
I am a newbie to much of this so please beer with me. After much reading and googling my understanding is this:
A user at a pc using a browser is a client. the web page requested creates a connection at the server. the web page has text, images, sound etc each of which makes a request of the connection. Now in order to handle concurrent connections I understand a new thread for each connection can be used. Is there a mechanism [like multiple threads] that exists to handle each request for the different parts of the web page? Indeed is it even necessary?

RE: server: connection vs request - help needed to understand programming theory

Quote:

so please beer with me. After much reading and googling
Sure, I'll have some beer with you, at least until we end up wearing our beer googles :)

Quote:

A user at a pc using a browser is a client. the web page requested creates a connection at the server
Correct, the client establishes a connection (makes a request of) the serer.

Quote:

Now in order to handle concurrent connections I understand a new thread for each connection can be used
The server listens for an accepts connections from the client. In order to do this, there needs to be a process bound to the port that is listening for connections. (see: http://www.cs.northwestern.edu/~agupta/cs340/proje... for more information regarding the specifics of the TCP/IP state system).

Quote:

Is there a mechanism [like multiple threads] that exists to handle each request for the different parts of the web page?
Yes, but not necessarily. The server may or may not have multiple threads listening for connections and handling requests; it will depend upon resources and how it is configured. It is possible that the client / browser will attempt to establish multiple, simultaneous, connections to retrieve the requested information, but it is not necessary.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close