25.12.2015 Views

Professional

1l6xhbR

1l6xhbR

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

throughput, improving<br />

System.String class, 178<br />

System.Threading namespace, 520, 584<br />

System.Threading.CancellationTokenSource objects,<br />

543<br />

System.Threading.Tasks namespace, 519, 537<br />

System.Threading.Tasks.TaskStatus enumeration, 548<br />

System.ValueType class, 258<br />

T<br />

tablets. See Universal Windows Platform (UWP) apps<br />

TabularHeaderStyle style, 643<br />

Tapped events, 290<br />

TappedRoutedEventArgs parameter, 291<br />

Task class, 519, 524–536<br />

cancellation strategy, 543–549<br />

parallelization, 524–543<br />

threading, 520<br />

wait methods, 554–556, 561–562<br />

Task class, 569–570<br />

Task constructor, 521<br />

Task objects, 520<br />

Action delegate, 521<br />

creating, 521<br />

implementing, 533–543<br />

of Parallel class, 536–540<br />

responsiveness and, 561–562<br />

running, 522<br />

TaskCanceledException exceptions, 556<br />

TaskContinuationOptions value, 523<br />

TaskContinuationOptions.OnlyOnFaulted value, 556<br />

TaskCreationOptions object, 522<br />

TaskFactory class, 575<br />

tasks, 517–558. See also multitasking<br />

abstracting, 536–540<br />

asynchronous, 559<br />

awaitable objects, 565<br />

blocking, 585<br />

canceled vs. allowed to run to completion, 551<br />

canceling, 543–554, 558<br />

checking cancellation, 552–554<br />

compute-bound, 559<br />

continuations, 522–523, 558, 561–564<br />

cooperative cancellation, 543–549<br />

creating, 521–522, 557<br />

exceptions handling, 554–556, 558<br />

global queue, 520<br />

halting execution, 586<br />

handling cancellation exceptions, 552–554<br />

handling exceptions, 554–556<br />

overhead, 541<br />

parallel, 536–540, 558<br />

PLINQ queries, 575–580<br />

results, 569–570<br />

status, 548–552, 554<br />

synchronization primitives, 584–586<br />

synchronizing, 523, 581–599<br />

synchronizing concurrent access to data, 581–598<br />

waiting for, 523, 547, 557, 561–562, 572<br />

waiting for events, 585<br />

Task.WaitAll method, 547<br />

templates, choosing, 4. See also Visual Studio 2015<br />

ternary operators, 365–366<br />

testing programs, 73–74<br />

text boxes, displaying values in, 43<br />

text files, iterating through, 110–113<br />

Text property, 21–23<br />

TextBlock controls, 20–21, 524, 609–610<br />

adding to page, 464, 611–612, 615–616<br />

TextBox controls, 23<br />

adding to page, 612–613, 615–616<br />

TextReader class, 111, 311<br />

ThenBy method, 476<br />

ThenByDescending method, 476<br />

this keyword, 164, 272, 356–357<br />

Thread objects, 520<br />

thread pools, 520<br />

thread safety, 596–597<br />

collection classes, 587–598<br />

collections, 400<br />

Dispose method and, 322–323<br />

overhead, 588<br />

ThreadPool class, 520<br />

threads, 520–521<br />

asynchronous methods, 560. See also<br />

asynchronous methods<br />

deadlocks, 571–572<br />

defined, 310<br />

hill-climbing algorithm, 521<br />

number, 521<br />

scheduling, 520<br />

sleep, 542<br />

synchronizing, 585, 599<br />

waiting for, 585–586, 599<br />

Thread.Sleep method, 542<br />

throughput, improving, 517–558<br />

773

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!