Skip to main content

QtWS15- Creating multithreaded applications with Qt, Bo Thorsen, Viking Software

Qt World Summit 2015, OCTOBER 5-7, BERLIN, GERMANY Creating multithreaded applications with Qt: In Qt, there are a lot of options for building multithreaded applications: Using QThread directly, Qt Concurrent, QFuture etc. Given the multitude of options, it's common for developers to be confused about which one they should choose for certain problems. So they choose one of them, learn this one, and stay with it for all their threaded work. That's too bad, when Qt offers better tools for some of the code they are working on. For the desktop, most of us have systems with many cores, that would allow the applications to run much faster, if the developers can use those tools correctly. This is increasingly also the case for applications running on embedded systems, phones or tablets, as the newer processors have an increasing number of cores. I will go through those options, show how to use each of them, and give examples of what each of the solutions would be useful for. I will also talk about the performance implications of the different approaches. I will also discuss when to avoid threads and instead focus on using the power of the event driven programming that Qt offers. This will give the developer the information needed to make the right choice next time he is faced with the decision of what type of threading technology to use. Video by Qt Company and greenwoodworx,