O'Reilly logo

C# 2008 and 2005 Threaded Programming: Beginner's Guide by Gastón C. Hillar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - Coding a simple CPU-intensive loop

You are a very good C# developer. However, you will have to work with computers using multi-core processors. You must understand how processes work. You do not understand why the researchers need huge processing power.

We are going to build a new C# application that executes a CPU-intensive loop and then run it without the IDE (Integrated Development Environment) in the background.

Note

We need a computer with at least two cores or two microprocessors installed in order to achieve significant results for this experiment.

  1. Create a new C# Project using the Windows Forms Application template in Visual Studio or Visual C# Express. The IDE is going to create a very simple one with a main Windows form ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required