Multithreading

Multithreading

Project Information

A program that utilizes multiple threads to read a file containing 50,000,000 random words (e.g. Communication, Protocols, and Architecture) and forms a list to find the longest word, the shortest word, and the most common word.

Multithreading was implemented by using multiple threads to sort an array of 50,000,000 words into an key-value pair. The key represents each unique word and the value represents the count of each unique word. At the end of the sorting, the program would call three functions (the longest word, the shortest word, and the most common word) to obtain the the necessary data/information.