APPLICATION LAYER
CLIENT SERVER PARADIGM
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
When does the server wait for a request from one of the clients?
|
Never
|
|
Sometimes (Every hour)
|
|
Quite often (Every 30 minutes)
|
|
Always
|
Explanation:
Detailed explanation-1: -In computing, a daemon (pronounced DEE-muhn) is a program that runs continuously as a background process and wakes up to handle periodic service requests, which often come from remote processes.
Detailed explanation-2: -The server passes its socket to the accept call. When the connection is established, the accept call returns a new socket representing the connection with the client. When the server wants to communicate with the client, or to end the connection, it uses this new socket, client sock .
Detailed explanation-3: -A concurrent server handles multiple clients at the same time. The simplest technique for a concurrent server is to call the fork function, creating one child process for each client.
There is 1 question to complete.