17.4.  Review Questions

[ fromfile: concurrency-questions.xml id: concurrency-questions ]

  1. List and explain at least two mechanisms by which a parent process communicates information to its child process.

  2. List and explain at least two mechanisms by which threads synchronize with each other.

  3. In what situations can a QTimer be used instead of a QThread? Why would one want to do that?

  4. What does it mean for an function to be thread-safe?

  5. Which class can be used in non-GUI threads? QImage or QPixmap?

  6. What does it mean for a function to be reentrant?

  7. How do you tell a non-GUI thread to enter into an event loop?

  8. Without using extra threads, how can you keep the GUI responsive while still performing a long-running loop?