0% found this document useful (0 votes)
33 views3 pages

pm1 004

This document contains the answers to 3 questions regarding resource allocation and network protocols for a securities exchange application. SQ1 calculates the minimum main memory size needed as 396 Mbytes based on memory allocation proportions for the OS, applications, and data receiving tasks. SQ2 determines that at least 3 CPUs are needed to process all tasks within 1 second, as the total processing time is calculated to be 2.14 seconds otherwise. SQ3 discusses that UDP would be better than TCP for this application due to its ability to broadcast to multiple addresses at once, though it is less reliable without delivery confirmation, and provides the data transmission rates calculated for each application.
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)
33 views3 pages

pm1 004

This document contains the answers to 3 questions regarding resource allocation and network protocols for a securities exchange application. SQ1 calculates the minimum main memory size needed as 396 Mbytes based on memory allocation proportions for the OS, applications, and data receiving tasks. SQ2 determines that at least 3 CPUs are needed to process all tasks within 1 second, as the total processing time is calculated to be 2.14 seconds otherwise. SQ3 discusses that UDP would be better than TCP for this application due to its ability to broadcast to multiple addresses at once, though it is less reliable without delivery confirmation, and provides the data transmission rates calculated for each application.
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/ 3

[Standard Answer] SW PMI Q4

SQ 1 Assume that the proportion of memory allocated to the main memory


necessary for OS is Xos, application program is Xt, and program for
receiving data from the securities exchanges is Xin. Also, assume that
memory used by receiving tasks are Ma and Mb, the Application Tasks 1
through 3 are M1 ,M2,and M3,the OS is Mos,and the numbers of
executed tasks among Applications 1 through 3 at the peak time are N1,
N2, and N3. Required size of the main memory Mx is:

Mx = (Ma + Mb) Xin + (M1 N1+ M2 N2+ M3 N3) Xt + Mos Xos


= (5+5)×0.8 + (6 × 50 + 6 × 30 + 10×20)×0.5 + 60×0.8
= 396 Answer 396 (Mbytes)

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

[Score Allocation] Total 13 points


SQ 1 3 points
SQ 2 4 points
SQ 3 2 points x 3 = 6 points

You might also like