pm1 004
pm1 004
SQ 2 CPU processing time T (ms) at peak time is sum amount of time for each
task to operate and use CPU. However, each task may be processed in 10
seconds, the total processing time is calculated by the following formula.
T = ( Ta + Tb )/10 + ( T1*N1 +T2*N2)/10
= (200+200)/10 + ( 300*50+200*30)/10 = 2140
It takes 2.14 seconds to process the tasks. To process them in 1 second,
there must be at least 3 CPUs.
Answer 3
SQ 3 (1) The amount of communication is the amount of data of Applications 1
through 3. If TCP is used, it has to connect to each PC and the amount
of communication will be huge.
The amount of communication for Application 1 on each PC
= 2000 (records) * 64 (bytes) * 8 (bit/byte)/10 seconds = 102400
(bit/sec)
The amount of communication for Application 2 on each PC
= 1000 (records) * 64 (bytes) * 8 (bit/byte)/10 seconds = 51200
(bit/sec)
The amount of communication for Application 3 on each PC
= 3600 * 8 (bit/byte)/30 seconds = 960 (bit/sec)
If TCP/IP is used, it depends on the number of PCs it communicates
with
The total amount of data on TCP/IP = The amount of communication
for Application 1 on each PC * the number of PCs which select
Application 1 + the amount of communication for Application 2 on
each PC * the number of PCs which select Application 2 + the amount
of communication for Application 3 on each PC * the number of PCs
which select Application 3
= 102400*50+51200*30+960*20
=6675200 Answer 6.7 Mbit/sec
(2) The characteristic of UDP is fixed length and it can use broadcast
address to send to multiple addresses at one time.
However, reliability of UDP is lower than TCP, since it does not check
if the data has been delivered. Also there is no responding packet.
Answer a, b