Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program to accept 5 URL strings as input, using HttpClient to read the URLs, parse the responses into blank-separated words, create an in-memory
Write a program to accept 5 URL strings as input, using HttpClient to read the URLs, parse the responses into blank-separated words, create an in-memory structure to store each word and the number of times each word appears in aggregate of all 5 pages and provide an output of the top 10 most prevalent words and their counts. Gather statistics for processing each URL and overall statistics for the end to end run. Save your results to a file. Create this project with Maven. Use Apache HttpClient 4.x. Modify the above program to spawn 5 threads to process the URLs in parallel. Modify the program to collect statistics for each individual thread to perform its own task and overall statistics for an end to end run. Modify the above program to use a single thread and make 5 asynchronous calls instead of the 5 threads. Modify the program to collect statistics for each individual thread to perform its own task and overall statistics for an end to end run. Write a program to accept 5 URL strings as input, using HttpClient to read the URLs, parse the responses into blank-separated words, create an in-memory structure to store each word and the number of times each word appears in aggregate of all 5 pages and provide an output of the top 10 most prevalent words and their counts. Gather statistics for processing each URL and overall statistics for the end to end run. Save your results to a file. Create this project with Maven. Use Apache HttpClient 4.x. Modify the above program to spawn 5 threads to process the URLs in parallel. Modify the program to collect statistics for each individual thread to perform its own task and overall statistics for an end to end run. Modify the above program to use a single thread and make 5 asynchronous calls instead of the 5 threads. Modify the program to collect statistics for each individual thread to perform its own task and overall statistics for an end to end run
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