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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.