Click here to Skip to main content
Click here to Skip to main content
Articles » Languages » C# » Applications » Downloads
 
Add your own
alternative version
Go to top

Some Useful Concurrency Classes and A Small Testbench

, 15 Jan 2007
Useful concurrency classes and small test bench in C#
using System;
using System.IO;
using System.Collections.Generic;
using System.Text;


using MPFramework.AppCore.Manufacturing.SpecializedTypes;


namespace QATester_Articles_Main
{
	/// <summary>
	/// Test exec for the Articles if you don't want to have NUnit installed.
	/// Just runs the tests from the Article. You could run 'em all from
	/// here if you want :-)
	/// </summary>
	class QATester_Main_Articles
	{
		static void Main(string[] args)
		{
			#region AppCore.MultiProcessing Tests
			///////////////////////////////////////////////////////////////////
			///// Tests for MultiProcessing - currently hardwired to just run
			///// the two demos from the article.
			///////////////////////////////////////////////////////////////////
			MPFramework.AppCore.MultiProcessing.QATester_AtomicUtils_2 tester
				= new MPFramework.AppCore.MultiProcessing.QATester_AtomicUtils_2();
			tester.QATester_RunTest_RetryLoopInt32PseudoAtomicOpCaller_b();
			//// Wait to finish.
			Console.WriteLine("Done with retry loop test!!! - CR to exit");
			Console.ReadLine();
			tester.QATester_RunTest_IRVTConcurrentCaller_b();
			//// Wait to finish.
			Console.WriteLine("Done with worker processcontrol test!!! - CR to exit");
			Console.ReadLine();
			#endregion // AppCore.MultiProcessing Tests

			#region AppCore.Manufacturing.SpecializedTypes Tests
			///////////////////////////////////////////////////////////////////
			///// Tests for RVT's
			///////////////////////////////////////////////////////////////////
			MPFramework.AppCore.Manufacturing.SpecializedTypes.QATester_ReferencedValueType_2 tester2
				= new MPFramework.AppCore.Manufacturing.SpecializedTypes.QATester_ReferencedValueType_2();
			tester2.QATester_RunTest_IVPRVT_a();
			#endregion //AppCore.Manufacturing.SpecializedTypes Tests

			//// Wait to finish.
			Console.WriteLine("Done with IVPRVT test!!! - CR to exit");
			Console.ReadLine();

		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

krogerma
Web Developer
United States United States
Kurt R. Matis received the B.S degree in Applied Mathemetics from Empire State College in 1981 and the PhD. degree in Electrical Engineering from Rensselaer Polytechnic Institute in 1984. He has been involved in several companies over the past 30 years, but has been most recently involved with the Macher-Plander Software Engineering Consortium, of which he is a co-founder. The Consortium is involved with education in .Net technologies and Software Quality Management topics.
 
Dr. Matis is a member of IEEE and the American Historical Truck Society. Kurt lives happily in Troy, NY with his beautiful wife, two beautiful daughters and his beautiful trucks.
 
Dr. Matis is interested in working with companies who wish assistance in porting legacy applications of all types to .Net. He can be reached at krogerma@aol.com.
 

 

| Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 15 Jan 2007
Article Copyright 2007 by krogerma
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid