Hands-On High Performance Programming with Qt 5 by Marek Krajewski
Author:Marek Krajewski
Language: eng
Format: epub, mobi
Publisher: Packt Publishing
Published: 2019-01-30T15:26:41+00:00
Summary
In this chapter, we covered a lot of stuff, but concurrency is one of most important and, sadly, one of the most difficult and error-prone topics in programming.
We started with the basics, namely with what threads, mutexes, and atomics are. Then we learned the unfortunate fact that the use of mutexes can lead to several problems such as: deadlocks, livelocks, starvation, priority inversion, convoying, and false sharing. Fortunately, these problems can be avoided with some care. We then progressed to evaluating the performance costs of using threads and mutexes and of their alternative, namely lock-free data structures. In the next section, we learned what thread support classes Qt provides and how they integrate with its signal-slot mechanism. After that, we proceeded to multithreading optimization techniques—first, we learned how to decrease thread construction and context-switching costs and then how to decrease synchronization costs by the clever usage (or absence) of locking.
With this chapter, we have finished the first part of this book, which was intended to give the reader an overview of the generic performance principles as applied to the Qt framework.
In the next chapter, we will tell some stories about performance fails seen in the wild in order to illustrate and corroborate the general performance principles we have learned in the first chapters. After that, we will at last delve into a performance evaluation of the most important Qt modules.
Download
Hands-On High Performance Programming with Qt 5 by Marek Krajewski.mobi
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Anatomy | Animals |
Bacteriology | Biochemistry |
Bioelectricity | Bioinformatics |
Biology | Biophysics |
Biotechnology | Botany |
Ecology | Genetics |
Paleontology | Plants |
Taxonomic Classification | Zoology |
Sapiens: A Brief History of Humankind by Yuval Noah Harari(13918)
The Tidewater Tales by John Barth(12372)
Mastermind: How to Think Like Sherlock Holmes by Maria Konnikova(6894)
Do No Harm Stories of Life, Death and Brain Surgery by Henry Marsh(6658)
The Thirst by Nesbo Jo(6406)
Why We Sleep: Unlocking the Power of Sleep and Dreams by Matthew Walker(6301)
Life 3.0: Being Human in the Age of Artificial Intelligence by Tegmark Max(5146)
Sapiens by Yuval Noah Harari(5094)
The Longevity Diet by Valter Longo(4835)
The Body: A Guide for Occupants by Bill Bryson(4538)
The Rules Do Not Apply by Ariel Levy(4483)
The Immortal Life of Henrietta Lacks by Rebecca Skloot(4224)
Why We Sleep by Matthew Walker(4171)
Animal Frequency by Melissa Alvarez(4126)
Yoga Anatomy by Kaminoff Leslie(4084)
The Hacking of the American Mind by Robert H. Lustig(4051)
All Creatures Great and Small by James Herriot(3951)
Barron's AP Biology by Goldberg M.S. Deborah T(3925)
Double Down (Diary of a Wimpy Kid Book 11) by Jeff Kinney(3873)
