IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Threading and Concurrent Programming Examples

Threading and concurrent programming in Qt.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Threading and Concurrent Programming Examples

Image non disponible

Qt makes it easy to write multithreaded applications. Signals and slots can be used to safely communicate between threads in your application.

  • Mandelbrot: The Mandelbrot example demonstrates multi-thread programming using Qt. It shows how to use a worker thread to perform heavy computations without blocking the main thread's event loop.

  • Queued Custom Type Example: Demonstrates multi-thread programming using Qt.

  • Semaphores Example: Demonstrates multi-thread programming using Qt.

  • Wait Conditions Example: Demonstrates multi-thread programming using Qt.

The QtConcurrent namespace includes a collection of classes and functions for straightforward concurrent programming.

These examples show how to apply the basic techniques of concurrent programming to simple problems.

  • Image Scaling: Demonstrates how to asynchronously download and scale images.

  • Prime Counter: Demonstrates how to monitor the progress of concurrent operations.

  • Word Count: Demonstrates how to use the map-reduce algorithm.

Examples marked with an asterisk (*) are fully documented.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+