Meeting 19: InterProcess Communication using Shared Memory

Today we are going to see how processes can communicate using shared memory

Links:

Exercise 19: QSharedMemory

GitHub Invitation URL: exercise19

Steps:

  1. Clone the assignment for today after accepting the GitHub invitation at the link above. The repository contains five files:
  1. Build and run the applications in separate shells. Verify they communicate properly.

  2. Modify qt_shared_deque_2.cpp so that it prompts the user via standard input for an integer to enqueue as long as there is space in the buffer.

  3. Recompile your applications. Start qt_shared_deque_2 first and enter in several numbers at the prompt. Then in a separate shell start qt_shared_deque_1. What happens?

  4. Now, use git to commit the source files changed to the local repository.

  5. Finally, use git push to synchronize the repository with that on GitHub.

You have completed the Exercise.