Answered step by step
Verified Expert Solution
Question
1 Approved Answer
im totally lost with this exercise. You have a PC with a 2 GHz processor, a system bus clocked at 400 MHz, and a 3
im totally lost with this exercise.
You have a PC with a 2 GHz processor, a system bus clocked at 400 MHz, and a 3 Mbps internal cable modem attached to the system bus. No parity or other error-checking mechanisms are used. The modem has a 64-byte buffer. After it receives 64 bytes, it stops accepting data from the network and sends a data ready interrupt to the CPU. When this interrupt is received, the CPU and OS perform the following actions a. The supervisor is called b. The supervisor calls the modem s data ready interrupt handler C. The interrupt handler sends a command to the modem, instructing it to copy its buffer content to main memory. d. The modem interrupt handler immediately returns control to the supervisor, without waiting for the copy operation to be completed e. The supervisor returns control to the process that was originally interrupted. When the modem finishes the data transfer, it sends a transfer completed interrupt to the CPU and resumes accepting data from the network. In response to the interrupt, the CPU and OS perform the following actions a. The supervisor is called b. The supervisor calls the transfer completed interrupt handler C. The interrupt handler determines whether a complete packet is present in memory. If so, it copies the packet to a memory region of the corresponding application program. d. The modem interrupt handler returns control to the supervisor e. The supervisor returns control to the process that was originally interrupted Sending an interrupt requires one bus cycle. A push or pop operation consumes 30 CPU cycles Incrementing the stack pointer and executing an unconditional BRANCH instruction require one CPU cycle each. The supervisor consumes eight CPU cycles searching the interrupt table before calling an interrupt handler. The data ready interrupt handler consumes 50 CPU cycles before returning to the supervisor. Incoming packets range in size from 64 bytes to 4096 bytes. The transfer complete interrupt handler consumes 30 CPU cycles before returning to the supervisor if it doesn t detect a complete packet in memory. If it does, it consumes 30 CPU cycles plus one cycle for each 8 bytes of the packet. Question 1: How long does it take to move a 64-byte packet from its arrival at the modem until its receipt in the memory area of the target application program or service? State your answer in elapsed time (seconds or fractions of seconds) Question 2: The computer is running a program that s downloading a large file by using the modem, and all packets are 1024 bytes. What percentage of the computer s CPU capacity is used to manage data transfer from the modem to the program? What percentage of available bus capacity is used to move incoming data from the modem to the program? Assume the bus uses a simple request/response protocol without command acknowledgment. Question 3: Recalculate your answers to Questions 1 and 2, assuming a modem buffer size of 1024 bytes and all incoming packets being 1024 bytes You have a PC with a 2 GHz processor, a system bus clocked at 400 MHz, and a 3 Mbps internal cable modem attached to the system bus. No parity or other error-checking mechanisms are used. The modem has a 64-byte buffer. After it receives 64 bytes, it stops accepting data from the network and sends a data ready interrupt to the CPU. When this interrupt is received, the CPU and OS perform the following actions a. The supervisor is called b. The supervisor calls the modem s data ready interrupt handler C. The interrupt handler sends a command to the modem, instructing it to copy its buffer content to main memory. d. The modem interrupt handler immediately returns control to the supervisor, without waiting for the copy operation to be completed e. The supervisor returns control to the process that was originally interrupted. When the modem finishes the data transfer, it sends a transfer completed interrupt to the CPU and resumes accepting data from the network. In response to the interrupt, the CPU and OS perform the following actions a. The supervisor is called b. The supervisor calls the transfer completed interrupt handler C. The interrupt handler determines whether a complete packet is present in memory. If so, it copies the packet to a memory region of the corresponding application program. d. The modem interrupt handler returns control to the supervisor e. The supervisor returns control to the process that was originally interrupted Sending an interrupt requires one bus cycle. A push or pop operation consumes 30 CPU cycles Incrementing the stack pointer and executing an unconditional BRANCH instruction require one CPU cycle each. The supervisor consumes eight CPU cycles searching the interrupt table before calling an interrupt handler. The data ready interrupt handler consumes 50 CPU cycles before returning to the supervisor. Incoming packets range in size from 64 bytes to 4096 bytes. The transfer complete interrupt handler consumes 30 CPU cycles before returning to the supervisor if it doesn t detect a complete packet in memory. If it does, it consumes 30 CPU cycles plus one cycle for each 8 bytes of the packet. Question 1: How long does it take to move a 64-byte packet from its arrival at the modem until its receipt in the memory area of the target application program or service? State your answer in elapsed time (seconds or fractions of seconds) Question 2: The computer is running a program that s downloading a large file by using the modem, and all packets are 1024 bytes. What percentage of the computer s CPU capacity is used to manage data transfer from the modem to the program? What percentage of available bus capacity is used to move incoming data from the modem to the program? Assume the bus uses a simple request/response protocol without command acknowledgment. Question 3: Recalculate your answers to Questions 1 and 2, assuming a modem buffer size of 1024 bytes and all incoming packets being 1024 bytes
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started