Page 50 - CSharp/C#
P. 50
TransformManyBlock 838
BatchBlock 839
BufferBlock 840
Chapter 150: Threading 842
Remarks 842
Examples 842
Simple Complete Threading Demo 842
Simple Complete Threading Demo using Tasks 843
Explicit Task Parallism 844
Implicit Task Parallelism 844
Creating and Starting a Second Thread 844
Starting a thread with parameters 845
Creating One Thread Per Processor 845
Avoiding Reading and Writing Data Simultaneously 845
Parallel.ForEach Loop 847
Deadlocks (two threads waiting on eachother) 847
Deadlocks (hold resource and wait) 849
Chapter 151: Timers 852
Syntax 852
Remarks 852
Examples 852
Multithreaded Timers 852
Features: 853
Creating an Instance of a Timer 854
Assigning the "Tick" event handler to a Timer 854
Example: Using a Timer to perform a simple countdown. 854
Chapter 152: Tuples 857
Examples 857
Creating tuples 857
Accessing tuple elements 857
Comparing and sorting Tuples 857
Return multiple values from a method 858

