Overview Use Parallel.Invoke to execute operations in parallel on a data source. The runtime handles scheduling and scales automatically to the number of cores on the host. Warning: None of the operations must modify the data source (risk of race condition).

string words[] = // some array of words here

Parallel.Invoke(() =>
    {
        GetLongestWord(words);
    },
    () =>
        {
            GetMostCommonWords(words);
        },
        {
            GetCountForWord(words, "booger");
        },
    
); // close Parallel.Invoke