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 - Using lists for thread creation on the fly I

It is time! You must finish the application. One FBI agent tells you he had a quad-core notebook, and he wanted to test the application on the notebook before running it on the server. You cannot hardcode the threads and you need to do it completely dynamically. The lists are the best solution for this problem and your key to freedom! Let's use them. It is not difficult.

Now, we are going to make some big changes to the application, modifying variables to be lists, or lists of lists, so they can be accessed by multiple threads created dynamically. In order to accomplish that, we must share data between the many threads:

  1. Open the project, SMSEncryption.
  2. Add the following line in the 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