Invitation to Computer Science 8th Edition

Published by Cengage Learning
ISBN 10: 1337561916
ISBN 13: 978-1-33756-191-4

Chapter 10 - 10.4 - Alternative Programming Paradigms - Practice Problems - Page 532: 2

Answer

One solution would be to have the $input$/$output$ processor set a timer for the maximum possible response time from each of the search processors and if that time is exceeded, it reports that NUMBER was not found. This is not foolproof, because it could simply be that the communications link between the $input$/$output$ processor and the one processor that found NUMBER is broken, so it was unable to report back the corresponding NAME. A better solution would be to have each search processor report back to the $input$/$output$ processor when it cannot find NUMBER; when the $input$/$output$ processor has received that message from all $1,000$ search processors, it would then report that NUMBER was not found.

Work Step by Step

One solution would be to have the $input$/$output$ processor set a timer for the maximum possible response time from each of the search processors and if that time is exceeded, it reports that NUMBER was not found. This is not foolproof, because it could simply be that the communications link between the $input$/$output$ processor and the one processor that found NUMBER is broken, so it was unable to report back the corresponding NAME. A better solution would be to have each search processor report back to the $input$/$output$ processor when it cannot find NUMBER; when the $input$/$output$ processor has received that message from all $1,000$ search processors, it would then report that NUMBER was not found.
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.