Reads text file as stdin, parses for words and sends them via message queues to a group of child processes for sorting and counting. Then combines sorted words (suppressing duplicates) from each child via message queues and outputs results to stdout.