Skip to content

C# 2008 and 2005 Threaded Programming: Beginner`s Guide: Exploit the power of multiple processors for faster, more responsive software by Gastón C. Hillar - 2009

by Gastón C. Hillar

No image available

C# 2008 and 2005 Threaded Programming: Beginner`s Guide: Exploit the power of multiple processors for faster, more responsive software

by Gastón C. Hillar

  • New
  • Paperback
Shroff Publishers/Packt, 2009. Softcover. New. 18 x 23 cm. What you will learn from this book Transform single-threaded algorithms to multithreaded scalable jobs by using object-oriented capabilities create an independent thread with an asynchronous execution by using a delegate to update the UI Achieve responsive user interface using synchronous and asynchronous delegates to dispatch changes to the UI thread Specify the degree of parallelism desired for determining the number of threads that the query must use to achieve better performance Create applications that use the full power of the processors using parallel programming techniques Develop applications to create background threads using the BackgroundWorker component Learn debugging techniques to find solutions to multithreaded application problems Chapter 1: Taking Advantage of Multiprocessing and Multiple Cores Mono-processor systems: The old gladiators Single core: Only one warrior to fight against everybody The performance waterfall Multi-processor systems: Many warriors to win a battle Estimating performance improvements Avoiding bottlenecks Taking advantage of multiple execution cores Scalability Load balancing: Keeping everybody happy Operating systems and virtual machines Parallelism is here to stay Code patterns learned in this chapter Exercises Chapter 2: Processes and Threads What is a process? What is a thread? Multiple threads in servers Multiple threads in clients Code patterns learned in this chapter Exercises Chapter 3: BackgroundWorker in action for beginners RTC: Rapid thread creation Defining the work to be done Asynchronous execution Synchronous execution Showing the progress Canceling the job Working with multiple BackgroundWorker BackgroundWorker vs. Timer BackgroundWorker creation on the fly Code patterns learned in this chapter Exercises Chapter 4: Thread Class—Practical Multithreading in Applications Creating threads with the Thread class Sharing data between threads Passing parameters to threads Code patterns learned in this chapter Exercises Chapter 5: Simple Debugging Techniques with Multithreading Watching multiple threads Debugging multithreaded applications as single-threaded applications Showing partial results in multi threaded code Code patterns learned in this chapter Exercises Chapter 6: Understanding threads’ control with patterns Starting, Joining, Pausing and Restarting threads Understanding the pixels` color compositions Creating independent blocks of concurrent code Using flags to enhance control over concurrent threads Testing results with Performance Monitor and Process Explorer Using the AutoResetEvent class to handle signals between threads Using the WaitHandle class to check for signals Code patterns learned in this chapter Exercises Chapter 7: Dynamically Splitting Jobs into Pieces—Avoiding Problems Running split jobs many times Using classes, methods, procedures, and functions with multithreading capabilities Understanding the garbage collector with multi threading Controlling the system garbage collector with the GC class Avoiding garbage collection problems Avoiding inefficient processing usage problems Retrieving the total memory thought to be allocated Generalizing the algorithms for segmentation with classes Code patterns learned in this chapter Exercises Chapter 8: Simplifying Parallelism Complexity Specializing the algorithms for segmentation with classes Defining the class to instantiate Creating simple constructors Programming the results collection method Optimizing and encapsulati ng parallel algorithms Achieving thread affinity Avoiding locks and many synchronization nightmares Code patterns learned in this chapter Exercises Chapter 9: Working with Parallelized Input/Output and Data Access Queuing threads with I/O Printed Pages: 420.
  • Bookseller A - Z Books IN (IN)
  • Format/Binding Softcover
  • Book Condition New New
  • Quantity Available 500
  • Binding Paperback
  • Publisher Shroff Publishers/Packt
  • Date Published 2009
  • Keywords C# 2008 and 2005 Threaded Programming: Beginner`s Guide: Exploit the power of multiple processors for faster, more responsive softwareGastón C. Hillar9788184047783
  • Size 18 x 23 cm