Threading Basics –Asynchronous Programming
Most modern software runs its processes in parallel and offloads tasks to different threads to take advantage of modern CPU multicore architecture. This way, software can be more efficient by running multiple processes simultaneously without affecting performance. In this chapter, we will learn how to make use of threads to boost our Qt 6 application’s performance and efficiency.
This chapter will cover the following recipes:
- Using threads
QObject
andQThread
- Data protection and sharing data between threads
- Working with
QRunnable
processes