Computers, phones and tablets have an increasing amount of CPU cores. This means that taking advantage of threads is more and more important on everything from smaller embedded devices to very large computers. By not using the full power of the processor, we are leaving a lot of power unclaimed. Instead of setting a higher minimum device requirement, we need to embrace the threading tools and use all the computing power at hand. In Qt, there are a lot of options for building threaded applications. Everybody knows about QThread, but not everybody knows how to use this class. Qt Concurrent and QFuture and the other options are less known, but have powerful applications. With all the options, it’s common for developers to be confused about which one they should choose for certain problems. So they choose one, learn that one and use it for all problems. Instead of using the proper tool for the job. And threaded application comes at a very high cost in terms of application development, debugging and maintenance. More so, if the technologies used are not the proper ones. In this talk you will see all the available Qt technologies for threaded applications, get examples of how to use them and understand why some options are better for some problems. You will also learn about the performance implications of the choices. This will give developers the necessary information to make the right choice when faced with decisions of what type of threading technology to use.
TALK: Qt Based Threading
SPEAKER: Bo Thorsen
COMPANY: Viking Software
TRACK:Qt & Technical Deep Dive
Talk recorded at the Qt World Summit 2019 event in Berlin. #QtWS19 November 2019 - BCC