コード例 #1
0
        public static void StartMultiCoreOperationDataShare()
        {
            Console.WriteLine("Start Time: " + DateTime.Now.ToLongTimeString());

            try
            {
                MultiCoreProcessing.ReadFileDataToList();

                //ThreadStart enGBThrdRef = new ThreadStart(MultiCoreProcessing.FindNewUsersForMarketForMonth);
                Thread enGBThread = new Thread(() => MultiCoreProcessing.FindNewUsersForMarketForMonthList("en-GB"));
                Thread enAUThread = new Thread(() => MultiCoreProcessing.FindNewUsersForMarketForMonthList("en-AU"));
                Thread enCAThread = new Thread(() => MultiCoreProcessing.FindNewUsersForMarketForMonthList("en-CA"));
                Thread deDEThread = new Thread(() => MultiCoreProcessing.FindNewUsersForMarketForMonthList("de-DE"));



                enGBThread.Start();
                enAUThread.Start();
                enCAThread.Start();
                deDEThread.Start();
            }
            catch (Exception ex)
            {
                Console.WriteLine("Exception Raised: " + ex.Message);
            }

            Console.WriteLine("End Time: " + DateTime.Now.ToLongTimeString());
        }
コード例 #2
0
 public static void SingleCoreOperation()
 {
     try
     {
         MultiCoreProcessing.FindNewUsersForMarketForMonth("en-GB");
         MultiCoreProcessing.FindNewUsersForMarketForMonth("en-AU");
         MultiCoreProcessing.FindNewUsersForMarketForMonth("en-CA");
         MultiCoreProcessing.FindNewUsersForMarketForMonth("de-DE");
     }
     catch (Exception ex)
     {
         Console.WriteLine("Exception Raised: " + ex.Message);
     }
 }