Flow Control in Noiseless Channels

preview_player
Показать описание
Flow Control in Noiseless Channels
Lecture By: Mr. Arnab Chakraborty, Tutorials Point India Private Limited
Рекомендации по теме
Комментарии
Автор

Sir from the Stop-and-wait the sender-side the lines:

while(true)
CanSend = true;
{
The rest of the code
}


Has problem since the canSend = true; is between the while(true) and the surely braces the program will take the canSend = true; as body of the loop and will be executed forever and never execute the lines after that. If we want to solve the problem we need to replace lines 1 and 2 as below:

CanSend = true;
While(true)
{
The rest of the code
}

Thanks.

blndazeez
Автор

your algo is wrong for the stop and wait protocol. The first canSend = true should be above the while loop.

malaimama