C # Advanced Programming, 11th Edition - Chapter 21
Others
2020-03-22 09:53:05
views: null
navigation
CHAPTER Tasks and Parallel Programming
21.1 Summary 459
21.2 Parallel class 460
21.2.1 using the Parallel.For () method loops 460
21.2.2 advance interrupted Parallel.For 462
Initialization 21.2.3 Parallel.For () method 462
21.2.4 using Parallel.ForEach () method loops 463
21.2.5 method calls through a plurality of methods 464 Parallel.Invoke ()
21.3 Tasks 464
21.3.1 Start Task 464
The results 21.3.2 Future-- task 466
21.3.3 Continuous task 467
21.3.4 Task hierarchy 468
21.3.5 Task 468 returns from the method
21.3.6 waiting task 468
21.4 Cancellation architecture 470
21.4.1 Parallel.For () method to cancel 470
21.4.2 Task canceled 471
21.5 data stream 472
21.5.1 operation block 472 using
21.5.2 source and target data block 473
21.5.3 connection block 474
21.6 Timer class 475
477 21.7 Threading Issues
21.7.1 race condition 477
479 21.7.2 Deadlock
21.8 lock statement and thread-safe 480
21.9 Interlocked 类 483
21.10 Monitor class 484
21.11 SpinLock structure 485
21.12 WaitHandle 基类 485
21.13 Mutex class 485
21.14 Semaphore class 486
21.15 Events class 487
21.16 Barrier class 490
21.17 ReaderWriterLockSlim 类 492
21.18 Lock 和await 494
21.19 Summary 496
Origin www.cnblogs.com/zenronphy/p/ProfessionalCSharp7Chapter21.html