Assignments - OS and Web Technologies V1 0
Assignments - OS and Web Technologies V1 0
Assignments
for
Operating Systems and Web Technologies
March 2008
COMPANY CONFIDENTIAL
Hexaware Technologies Document Revision History
Ver.
Date Author(s) Reviewer(s) Description
Revision
0.0 18-Mar-2008 Muruganantham A, Eugene Xavier P, Initial draft
Hexaware, Chennai Hexaware, Chennai
1.0 24-Mar-2008 Muruganantham A, Eugene Xavier P, After incorporating
Hexaware, Chennai Hexaware, Chennai review comments
Table of Contents
Assignment 5: WWW
Problem:
a) A computer uses an 18 bit address system, with 6 bits used as a page address and 12
bits used as a displacement. Calculate the total number of pages and express the
following addresses as a paging address:
001111000000111000
b) In a paged segmented system, a virtual address consists of 32 bits of which 12 bits are
for displacement, 11 bits are for sequence number and 9 bits are for page number.
Calculate:
I. Page Size
II. Maximum Segment Size
III. Maximum Number of Pages
IV. Maximum number of segments
c) Assume a virtual paging system has three real page frames. Simulate the effect of
LRU, FIFO and optimal policies for page replacement for the following sequence of
virtual page references, indicating the position of page faults.
Sequence: 1 3 3 2 5 4 5 4 1 4 2 2 5
d) A computer has four page frames. The time of loading, time of last access, and the
R (Read) and M (Modified) bits for each page are as shown below:
Problem:
a) What kind of data structure is required to implement the round-robin scheduling
policy?
b) List the advantages and disadvantes of round robin scheduling if the time slice is too
large.
c) Find the average waiting time in the round robin scheduling for the following. Assume
a time slice of 5ms.
Process CPU time (in ms)
P1 4
P2 3
P3 3
Problem:
a) How does the system’s performance change with respect to response time when more
(user) terminals are added to a) Host-centric computing (for example Mainframes)
b) Network of computers. Which is better and why?
b) List out the applications which are based on RPC & P2P, ODBC middleware.
Problem:
Use of Repeaters
Repeaters operate at which layer of OSI
Bridges are used for
Bridges operate at which layer of OSI
Routers are used for
Routers operate at which layer of OSI
Assignment 5: WWW
Problem:
c) Why is dynamic web content response time slower than static web content?
---------------------