Professional Documents
Culture Documents
CONFIGURATION
ASSIGNMENT
Available
A B C
3 3 2
First Iteration
For process P0
A B C
Need Matrix 7 4 3
Available Matrix 3 3 2
The Available matrix value is less than that of the need matrix value and hence it is
false.
For process P1
Here , the available matrix value is more than the need matrix value so, it is true
A B C
Need Matrix 1 2 2
Available Matrix 3 3 2
Updated Available 5 3 2
Matrix
For process P2
A B C
Need Matrix 6 0 0
Available Matrix 5 3 2
Here , the available matrix value is less than that of the need value and hence it is
false
For Process P3
A B C
Need Matrix 0 1 1
Available Matrix 5 3 2
Updated Available 7 4 3
Matrix
Here , the available matrix value is more than the need value so, it is true
For Process P4
A B C
Need Matrix 4 3 1
Available Matrix 7 4 3
Updated Available 7 4 5
Matrix
Here , the available matrix value is more than the need value so, it is true
Second Iteration
For Process P0
A B C
Need Matrix 7 4 3
Available Matrix 7 4 5
Updated Available 7 5 5
Matrix
Here , the available matrix value is more than the need value so, it is true
For Process P2
A B C
Need Matrix 6 0 0
Available Matrix 7 5 5
Updated Available 10 5 7
Matrix
Here , the available matrix value is more than the need value so, it is true
The sequence of process is P1, P3, P4, P0, P2 and it is the safe state for execution.
a) Page replacement algorithm decide which memory pages to page out when a
page of memory needs to be allocated. And it happens when a page fault occurs,
and a free page cannot be used to satisfy the allocation. Based on this statement,
explain the different page replacement algorithms and how are they different from
each other. What are the advantages and disadvantages of using those
algorithms?
Disadvantages:
The process effectiveness is low.
When we increase the number of frames while using FIFO, we are
giving more memory to processes. So, page fault should decrease, but here
the page faults are increasing. This problem is called as Be lady’s Anomaly.
Every frame needs to be taken account off.
Disadvantages:
OPR is perfect, but not possible in practice as the operating
system cannot know future requests.
Error handling is tough.
4. Given a page reference string: 1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3 6. If we consider
the frame size
is 4. What is number of page faults in optimal page replacement algorithm?
1 2 3 4 2 1 5 6 2 1 2 3 7 6 3 2 1 2 3 6
1 1 1 1 1 1 1 1 1 1 1 1 7 7 7 7 1 1 1
1
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
2
3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
3
4 4 4 5 6 6 6 6 6 6 6 6 6 6 6 6
6
M M M M H H M M H H H H M H H H M H H
H
Page frame: 4
Page Fault = 8
a) Explain different types of process scheduling algorithms. If you have a very long
process and short processes keep coming up, then names any of these
algorithms which leads to starvation.
b) Using the Highest Response Ratio Next (HRRN) algorithm, you are required to
perform the following tasks:
Note: In this algorithm, we need to find the response ratio of all available threads/processes
and select the one with the highest Response Ratio.
Response Ratio = (W + S)/S
SOLUTION:
GANTT CHART:
A B D C E
0 3 9 10 15
20
RRD = (9-5+1) \1 = 5
802.11 denotes the IEEE designation for the wireless networking. IEEE 802.11 is
a set of LAN protocols and specifies the set of media access control (MAC) and
the physical layer protocols for the implementation of the wireless local area
network, Wi-Fi in various frequencies. 802.11x are the most widely used wireless
computer networking standards used in most home and office networks to access
internet services in laptops, printers, smartphones. The 802.11 standards allow
a wireless client to roam between multiple APs. The different specifications
in the 802.11 family in terms of transmission speed and frequency are
explained below:
IEEE 802.11: There were two variations on the initial 802.11 wireless
standard. Both offered 1 or 2Mbps transmission speeds and the same RF of
2.4GHz. The difference between the two was in how data travelled through
the RF media. One used FHSS, and the other used DSSS. The original
802.11 standards are far too slow for modern networking needs and are now
no longer deployed.
IEEE 802.11a: In terms of speed, the 802.11a standard was far ahead of the
original 802.11 standards. 802.11a specified speeds of up to 54Mbps in the
5GHz band, but most commonly, communication takes place at 6Mbps,
12Mbps, or 24Mbps. 802.11a is incompatible with the 802.11b and 802.11g
wireless standards.
IEEE 802.11b: The 802.11b standard provides for a maximum transmission
speed of 11Mbps. However, devices are designed to be backward-compatible
with previous 802.11 standards that provided for speeds of 1, 2, and
5.5Mbps. 802.11b uses a 2.4GHz RF range and is compatible with 802.11g.
IEEE 802.11g: 802.11g is a popular wireless standard today. 802.11g offers
wireless transmission over distances of 150 feet and speeds up to 54Mbps
compared with the 11Mbps of the 802.11b standard. Like 802.11b, 802.11g
operates in the 2.4GHz range and therefore is compatible with it.
IEEE 802.11n: The newest of the wireless standards listed in the Network+
objectives is 802.11n. The goal of the 802.11n standard is to significantly
increase throughput in both the 2.4GHz and the 5GHz frequency range. The
baseline goal of the standard was to reach speeds of 100Mbps, but given the
right conditions, it is estimated that the 802.11n speeds might reach a
staggering 600Mbps. In practical operation, 802.11n speeds will be much
slower .ds