0% found this document useful (0 votes)
80 views2 pages

Solution Prob2

i) The bus becomes busy at t=1 sec when computer 2 enters arbitration phase. ii) At t=3 sec, computer 1 cannot enter arbitration as the bus is still busy. iii) At t=6 sec, computer 1 enters arbitration but target 3 is busy, so computer 1 is queued by target 3. iv) At t=12 sec, computer 3 also cannot access target 3 as it is busy and is queued. v) All tasks are completed by t=33 sec, so the bus and all controllers become free at that time.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views2 pages

Solution Prob2

i) The bus becomes busy at t=1 sec when computer 2 enters arbitration phase. ii) At t=3 sec, computer 1 cannot enter arbitration as the bus is still busy. iii) At t=6 sec, computer 1 enters arbitration but target 3 is busy, so computer 1 is queued by target 3. iv) At t=12 sec, computer 3 also cannot access target 3 as it is busy and is queued. v) All tasks are completed by t=33 sec, so the bus and all controllers become free at that time.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Problem 2:

Suppose, 3 computers are sharing a common SCSI bus among them. 3 SCSI controllers are connected
with the same bus. Now solve the following scenario and find out the value of t at which all the
controllers and bus will become free after executing all the tasks given by the all the computers.
Consider ,data transfer rate between all components = 2 sec
And arbitration +selection/reselection time= 1 sec

Initiator Target Arbitration time of initiator Task time of target


(sec) given by initiator (sec)
2 3 1 10
1 2 3 8
1 3 6 4
3 1 8 20
3 3 12 9

i) When t=1sec, computer 2 enter in to arbitration phase.

A+S Trans

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Bus busy Target 3 busy

ii) When t=3 sec, computer 1 wants to enter in arbitration phase but cannot gain control over
bus as the bus is busy at that time.
iii) At, t=6 sec, computer 1 enters into arbitration phase but cannot transfer data to target 3 as
target 3 is busy at that time. So, target 3 keeps controller 1 in it’s queue.

A+S Trans A+S

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Bus busy Target 3 busy

Queue of target 3:

Cont. 1

iv) At t=8 sec, computer 3 enter in to arbitration phase.

A+S Trans

8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Bus busy Target 1 busy

v) At t=12 sec, computer 3 enters into arbitration phase but cannot transfer da ta to target 3 as
target 3 is busy at that time. So, target 3 keeps controller 3 in it’s queue.
A+S

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

Target 3 busy

Queue of target 3:

Cont. 1 Cont 3
vi) At t=14 sec, target 3 completes the previous task. So it dequeues the first item from the
queue (cont. 1) and enters into reselection phase.

A+Re Trans

4 ~ 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

Busy Bus busy Target 3 busy


(Previous task)

Queue of target 3:

Cont. 3

vi) At t=21 sec, target 3 completes the previous task. So it dequeues the next item from the
queue (cont. 3) and enters into reselection phase.

A+Re Trans A+Re Trans

4 ~ 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

Busy Bus busy Target 3 busy Bus busy Target 3 busy


(Previous task)

Queue of target 3:
Eventually, queue of target 3 becomes free.

You might also like