Explanation : PP(3, 4) = _____
PP function:
Len = tob(b, arr)
tob functions:
i = 0 4 > 0, (with b = 4)
if (4 % 2) False, so else gets executed
So, arr[0] = 0,
if t b = b/2
i = 1 2 > 0 (with b = 2)
if (2 % 2) false
So, else gets executed ⇒ arr [1] = 0, i = i + t b = b/2
i = 2 1 > 0 (with b = 1)
if (1 % 2) True arr [2] = 1 i + 1, b = b/2
i = 30 > 0 (with b = 0) false
return I, returns ‘3’ to len, in PP function.
In PP function: len = 3
For loop.
If the time quantum for RR is 4 ms, then the absolute value of the difference between the average turnaround times (in ms) of SJF and RR (round off t0 2 decimal places) is ……………...
Explanation : TCP connections at t = 0
1MSS = 2KB Threshold = 32KB (slow start)
RTT = 6ms. Then how big packet it (packet size) may deliver after t + 60 ms
1 RTT = 6 ms
⇒ 10 RTT = 60 ms
t + 60 = 0 + 60 = 60 ms
At 60 ms, CWND = 22 MSS
1 MSS = 2KB
⇒ 22 MSS = 22 × 22 = 44 KB