public void Process(bool limitProcessors = false)
        {
            var bookCount = 50000;

            _parallelism.GenerateBooks(bookCount);
            var query = limitProcessors ? BooksCount() : BooksCountHavingStock();

            Console.WriteLine($"\n\t{query.Count()} books out of {bookCount} total books," +
                              "having Qty in stock more than 12250.");
            Console.ReadKey();
        }
        private static void Parallelism()
        {
            var parallelism = new Parallelism();

            parallelism.GenerateBooks(19);
            Console.WriteLine("\n\tId\tName\tQty\n");
            //parallelism.Sequential();
            parallelism.PallelVersion();
            Console.WriteLine($"\n\tTotal Processes Running on the machine:{Environment.ProcessorCount}\n");
            Console.WriteLine("\tProcessing complete. Press any key to exit.");
            Console.ReadKey();
        }