Cargando…

C♯ 2008 and 2005 threaded programming beginner's guide : exploit the power of multiple processors for faster, more responsive software /

"This book will guide you through everything you need to start writing multithreaded C♯ applications. You will see how to use processes and threads in C♯, .NET Framework features for concurrent programming, sharing memory space between threads, and much more. The book is full of practical, inte...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Hillar, Gastón C.
Otros Autores: Brinzarea, Bogdan (Revisador), Spohn, Jerry L. (Revisador), Steckly, Ron (Revisador)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, U.K. : Packt Pub., 2009.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • C♯ 2008 and 2005 Threaded Programming; C♯ 2008 and 2005 Threaded Programming; Credits; About the Author; Acknowledgement; About the Reviewers; Preface; What this book covers; What you need for this book; Who is this book for; Conventions; Time for action
  • Uploading a document; What just happened?; Pop quiz; Have a go hero; Reader feedback; Customer support; Downloading the example code for the book; Errata; Piracy; Questions; 1. Taking Advantage of Multiprocessing and Multiple Cores; Mono-processor systems: The old gladiators; Single core: Only one warrior to fight against everybody.
  • Doing a tiny bit of each taskThe performance waterfall; Have a go hero
  • Researching micro-architectures and applications; Multi-processor systems: Many warriors to win a battle; Have a go hero
  • Multi-processing systems; Estimating performance improvements; Have a go hero
  • Calculating an estimated performance improvement; Avoiding bottlenecks; Have a go hero
  • Detecting bottlenecks; Taking advantage of multiple execution cores; Have a go hero
  • Counting cores; Scalability; Have a go hero
  • Detecting scalability problems; Load balancing: Keeping everybody happy.
  • Have a go hero
  • Thinking about load balancingOperating systems and virtual machines; Parallelism is here to stay; Have a go hero
  • Preparing minds for parallelism; Summary; 2. Processes and Threads; Processes-any running program; Time for action
  • Coding a simple CPU-intensive loop; What just happened?; Time for action
  • Changing the cores available for a process; What just happened?; Relating processes to cores; Time for action
  • Changing a process priority; What just happened?; Linear code problems in multiprocessing systems; Time for action
  • Running many processes in parallel.
  • What just happened?Time for action
  • Testing parallelism capabilities with processes; What just happened?; Time for action
  • Using the Process Explorer; Threads-Independent parts of a process; Time for action
  • Listing threads with Process Explorer; Have a go hero
  • Searching multithreaded applications; Time for action
  • Analyzing context switches with Process Explorer; What just happened?; Multiple threads in servers; Multiple threads in clients; Have a go hero
  • Redesigning algorithms using pseudo-code; Summary; 3. BackgroundWorker-Putting Threads to Work; RTC: Rapid thread creation.
  • Time for action
  • Breaking a code in a single threadWhat just happened?; Time for action
  • Defining the work to be done in a new thread; What just happened?; Have a go hero
  • Adding UI elements and monitoring the application; Asynchronous execution; Time for action
  • Understanding asynchronous execution step-by-step; What just happened?; Synchronous execution; Showing the progress; Time for action
  • Using a BackgroundWorker to report progress in the UI; What just happened?; Have a go hero
  • Reporting progress in many ways; Cancelling the job.
  • Time for action
  • Using a BackgroundWorker to cancel the job.