Basic server model, Operating System

Suppose we want to program a Web server; we could easily do so without using concurrency, as follows:

while(true)
wait connection
read from socket and parse url
look up url contents in cache
if (!in cache)
fetch from disk
put in cache
send data to client

How do we make this codework for lots and lots of clients? Since there are a lot of slowoperations being performed (e.g. connecting to the networking, accessing the disk, etc), processing only one client at a time clearly is not scalable. Our goal then is to build a concurrent application that both minimizes latency and maximizes parallelism.

Posted Date: 3/13/2013 3:03:49 AM | Location : United States







Related Discussions:- Basic server model, Assignment Help, Ask Question on Basic server model, Get Answer, Expert's Help, Basic server model Discussions

Write discussion on Basic server model
Your posts are moderated
Related Questions
How can deadlocks be represented? Deadlocks are able to be described in terms of a directed graph called as a system resource-allocation graph. This graph contains of the foll


Ask questioDevelop a utility in C language which will run in Linux operating systems to display following properties of the system: ? Processor speed ? Ram size ? Computer name ? S

The field that consists of a segment index or an internal index is known as Target datum is field that consists of a segment index or an internal index.

The term IPC (Inter-Process Communication) defines several paths by which different process executing on some operating system interact between each other.

What do you understand by “line balancing”? What happens if balance doesn’t exist?

The 5Z Company is selling pens to the local market. It is planning to maximize sales and profit by analyzing few conditions using the break-even analysis formula. Below is the data

Two Level Directory This kind of structure overcomes the problems of assigning unique names to the files. Thus there need not be any confusion among users. In this kind of s

Research the phenomenon of data races. Give an example of how an unprotected data race can give rise to data inconsistency. How do OpenMP and Cilk resolve this problem? Data

Define the Division of Labour between Client and Server Given our definition of client - server as the interaction between dispersed application logic components it must be not