224 views
0 votes
0 votes
A local area network is used as follows. The user issues a system call to write data packets to the network. The operating system then copies the data to a kernel buffer. Then it copies the data to the network controller board. When all the bytes are safely inside the controller, they are sent over the network at a rate of $10\: \text{megabits/sec.}$ The receiving network controller stores each bit a microsecond after it is sent. When the last bit arrives, the destination CPU is interrupted, and the kernel copies the newly arrived packet to a kernel buffer to inspect it. Once it has figured out which user the packet is for, the kernel copies the data to the user space. If we assume that each interrupt and its associated processing takes $1\: msec,$ that packets are $1024$ bytes (ignore the headers), and that copying a byte takes $1\: μsec,$ what is the maximum rate at which one process can pump data to another? Assume that the sender is blocked until the work is finished at the receiving side and an acknowledgement comes back. For simplicity, assume that the time to get the acknowledgement back is so small it can be ignored.

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
2
admin asked Oct 28, 2019
190 views
Explain how an OS can facilitate installation of a new device without any need for recompiling the OS.