AquinasTraining.co.uk - training courses. Home  -  FAQ  -  Corporate Plans

.NET 2.0 Multi-threaded Programming with C#

NET0070      Course duration (days): 3
Talk to a Training Advisor
Tel. 0800 652 0202
Availability
Schedule available upon request within 24 hours.
Need help? Contact us now.

About this class

This intensive course has been specifically designed to address the requirements of developers who wish to take advantage of multiprocessor machines or machines with dual logical / physical cores.

With the future emphasis on the development of processors with multiple cores there is an increasing need to utilise multiple threads.

Within the .NET framework using C# or VB.NET, delegates will be introduced to concepts and techniques required to create multithreaded applications.

The course will contain a substantial amount of Hands-On work. Delegates will be introduced to topics during theory sessions and these will be followed by lab exercises relating to the topic. Delegates will work on practical exercises which will reflect commercial scenarios.

Who will the lesson benefit?

Developers who wish to create commercial Multithreaded Applications using the .NET Framework.

What prerequisites are required

A background of programming Windows applications in .NET.

What delegates will learn

At the end of this course delegates will be able to:

  • Utilise Visual Studio .NET to develop multithreaded applications
  • Understand the need for and use of synchronization primitives
  • Understand the alternative approaches available
  • Develop multithreaded Windows Applications

Contents of this class

Introduction

  • What is Multithreading?
  • What is Synchronisation?
  • Deadlocks
  • .NET Support for Multithreading

Threading

  • Creating Threads
  • Thread class
  • Runnable Interface
  • Threadpool
  • Starting Threads
  • Thread Priority
  • Aborting threads
  • Join

Synchronisation Primitives

  • Monitors
  • WaitHandle
  • AutoResetEvent
  • ManualResetEvent
  • Mutex

Synchronisation with Windows

  • Issues with Windows threading
  • Creating Delegates
  • Using Control.Invoke

Changing Values in Threads

  • Interlocked interface
  • Increment
  • Exchange

Callbacks

  • WaitCallback
  • TimerCallback

Threads and Timing

  • Sleep
  • Timer
  • Interrupting Threads

Terminating Threads

  • Issues of Thread Termination
  • Controlled Shutdown