TCS
Company
A file is transferred from one location to another in 'buckets'. The size of the bucket is 10 kilobytes. Each bucket gets filled at the rate of 0.0001 kilobytes per millisecond. The transmission time from sender to receiver is 10 milliseconds per bucket. After the receipt of the bucket the receiver sends an acknowledgement that reaches sender in 100 milliseconds. Assuming no error during transmission, write a formula to calculate the time taken in seconds to successfully complete the transfer of a file of size N kilobytes.
Read Solution (Total 1)
-
- each bucket has 10 kb
so N kb wants N/10 buckets..
0.0001kb filled in 1ms
so 10 kb ll be filled in 10/0.0001ms=100000ms
sender to receiver s 10ms
ack is 100 ms
so total time for 1 bucket is (100000+10+100)ms=100110ms
for N/10 buckets it s 100110*N/10 ms=10011 ms=10.011s - 13 years agoHelpfull: Yes(17) No(0)
TCS Other Question