locked
Deleted RRS feed

All replies

  • See the following post

    https://stackoverflow.com/questions/13695499/proper-way-to-implement-a-never-ending-task-timers-vs-task


    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    StackOverFlow
    profile for Karen Payne on Stack Exchange

    Thursday, June 13, 2019 8:40 PM
  • If you want two parallel loops, then maybe try this tool:

     

       Parallel.Invoke(

          ( ) =>

          {

             for( ; ; )

             {

                . . .

             }

          },

          ( ) =>

          {

             for( ; ; )

             {

                . . .

             }

          }

          );

     

    Friday, June 14, 2019 4:39 AM
  • Have you tried using Parallel.ForEach. A Parallel.ForEach loop runs upon multiple threads and processing takes place in parallel.

    You can look into using PLINQ (Parallel Query).

    https://docs.microsoft.com/en-us/dotnet/standard/parallel-programming/introduction-to-plinq


    william xifaras


    Friday, June 14, 2019 3:01 PM
  •  using System.Threading.Tasks;

    Parallel.For(1, long.MaxValue, i =>
                {
                    Console.WriteLine("Hello World!");

                });

    Its not forever but almost :]




    • Edited by ThisNewbie Tuesday, June 18, 2019 9:36 PM
    Tuesday, June 18, 2019 8:36 PM