Introduction to C#

Introduction to C#1.Overview
2.Types
3.Expressions
4.Declarations
5.Statements
6.Classes and Structs
7.Inheritance
8.Interfaces
9.Delegates
10.Exceptions
11.Namespaces and Assemblies
12.Attributes
13.Threads
14.XML Comments
Read more

Threading Tips 10 Best Practices and Tips

Threading Tips 10 Best Practices and TipsTip 10 - Control.Invoke
- Update a Control only from the thread it was created on.
+ Detect if invoke is required.
+ Use delegate to forward to Control’s thread.
+ InvalidOperationException thrown if updating from wrong thread.
Read more

An Introduction to Programming with C# Threads

An Introduction to Programming with C# ThreadsThis paper provides an introduction to writing concurrent programs with “threads”. A threads facility allows you to write programs with multiple simultaneous points of execution, synchronizing through shared memory. The paper describes the basic thread and synchronization primitives, then for each primitive provides a tutorial on how to use it. The tutorial sections provide advice on the best ways to use the primitives, give warnings about what can go wrong and offer hints about how to avoid these pitfalls. The paper is aimed at experienced programmers who want to acquire practical expertise in writing concurrent programs. The programming language used is C#, but most of the tutorial applies equally well to other languages with thread support, such as Java.
Read more

An ASM specification of C# threads and the .NET memory model

An ASM specification of C# threads and the .NET memory modelWe present a high-level ASM model of C# threads and the .NET memory model. We focus on purely managed, fully portable threading features of C#. The sequential model interleaves the computation steps of the currently running threads and is suitable for uniprocessors. The parallel model addresses problems of true concurrency on multiprocessor systems. The models provide a sound basis for the development of multi-threaded applications in C#. The thread and memory models complete the abstract operational semantics of C# in [2].
Read more

Threads in C# Overview

Threads in C# Overview. Thread Basics (101)
. Thread Class
. Thread Synchronization
- Interlocked
- Lock
- Monitor
- Mutex
Read more

Next Page →