CHAPTER 12Doing Things in Parallel

When writing software, you often get to a point where a large chunk of work has to be performed. If the writing is in a graphical application, the graphical user interface can sometimes freeze. Fortunately, it can be avoided when you use threading.

Each application usually runs as a process. In most modern operating systems, several applications can run at once, meaning that several tasks are being performed in parallel. The processes are separated and are not concerned with each other.

Inside each process there can be one or more threads running. These threads share resources and memory and need to be aware of each other. They can also collaborate on tasks, splitting heavy works among them. This also helps ...

Get Foundations of Qt Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.