C++ multithreading cookbook : over 60 recipes to help you create ultra-fast multithreaded applications using C++ with rules, guidelines, and best practices /
The book is an easy-to-follow guide for creating multi-threaded applications using C++. Each topic is thoroughly explained with multiple illustrations. Many algorithms, such as Dinning Philosophers Problem give you thorough explanations that will help you to understand and solve concurrent tasks. Th...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Pub.,
2014.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Introduction to C++ Concepts and Features; Introduction; Creating a C++ project; Program structure, execution flow, and runtime objects; The structural programming approach; Understanding the object-oriented programming approach; Explaining inheritance, overloading, and overriding; Understanding polymorphism; Event handlers and Message Passing Interface; Linked list, queue, and stack examples; Chapter 2: The Concepts of Process and Thread; Introduction.
- Processes and threadsExplaining the process model; Implementation of processes; IPC
- interprocess communication; Solving classical IPC problems; Implementation of the thread model; Thread usage; Implementing threads in user space; Implementing threads in the kernel; Chapter 3: Managing Threads; Introduction; Processes versus threads; Permissive versus preemptive multitasking; Explaining the Windows Thread object; Basic thread management; Implementing threads without synchronization; Using synchronized threads; Win32 synchronization objects and techniques; Chapter 4: Message Passing.
- IntroductionExplaining the Message Passing Interface; Understanding a message queue; Using the thread message queue; Communicating through the pipe object; Chapter 5: Thread Synchronization and Concurrent Operations; Introduction; Pseudoparallelism; Understanding process and thread priority; The Windows dispatcher object and scheduling; Using mutex; Using semaphore; Using event; Using critical section; Using pipes; Chapter 6: Threads in the .NET Framework; Introduction; Managed versus unmanaged code; How threading works in .NET; The difference between foreground and background threads.
- Understanding the .NET synchronization essentialsLocking and avoiding deadlocks; Thread safety and types of the .NET framework ; Signaling with event wait handles; Event-based Asynchronous Pattern; Using the BackgroundWorker class; Interrupting, aborting, and safe cancelling the thread execution; Non-blocking synchronization; Signaling with Wait and Pulse; The Barrier class; Chapter 7: Understanding Concurrent Code Design; Introduction; How to design parallel applications; Understanding parallelism in code design; Turning on to a parallel approach; Improving the performance factors.
- Chapter 8: Advanced Thread ManagementIntroduction; Using thread pools; Customizing the thread pool dispatcher; Using remote threading; Appendix; Installing MySQL Connector/C; Installing WinDDK
- Driver Development Kit; Setting up a Visual Studio project for driver compilation; Using the DebugView application; Setting up a Visual Studio project for OpenMP compilation; Index.