~/talk

Multithreading with Qt

Talkat Qt Developer Days 2010 (Munich) · 2010-10-11..10-13· [concurrency]
links:none on file
slides:none on file

Covers concrete Qt primitives and “what works”: QProcess for coarse-grain parallelism, QThread/QThreadPool/QRunnable and moveToThread for object-based background work (example long task simulating 750 ms sleeps), use Qt::QueuedConnection for cross-thread calls and always call quit() and wait() to avoid segfaults. Shows real uses: QFileDialog file watching, QHostInfo DNS lookups on a thread pool, Qt Creator using many threads for highlighting and builds. Recommends one thread per core only for CPU-bound work, warns of deadlocks, suggests reduced lock scope, QThreadStorage per-thread /dev/random files to fix a benchmark regression, and notes a racy read/write-lock prototype.

AI-written summary · about

  1. 0:00Introduction
  2. 4:20What is multithreading
  3. 7:33Multithreading in Qt
  4. 10:21Qt thread basics
  5. 15:08Moving work to threads
  6. 20:28QThreadPool and QRunnable
  7. 23:05QtConcurrent overview
  8. 25:11Sharing data between threads
  9. 27:06QMutex and deadlocks
  10. 31:07QReadWriteLock
  11. 33:14Thread local storage
  12. 36:04Advanced synchronization
  13. 41:06Q&A: Threading APIs
  14. 42:12Q&A: Mutex and battery life
  15. 44:17Q&A: Cross-process sync
  16. 45:42Q&A: Thread priorities
  17. 47:09Q&A: Sharing data
  18. 48:35Q&A: Thread design
  19. 50:21Q&A: QtConcurrent on Symbian
  20. 51:31Q&A: Debugging deadlocks
  21. 53:58Q&A: Moving objects to threads
  22. 54:19Q&A: QSQL across threads
  23. 55:00Q&A: Auto vs queued connections
  24. 57:09Q&A: Future of Qt concurrency
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.