Work 16: Sharing is caring.

posted Dec 4, 2018, 6:39 AM by JonAlf Dyrland-Weaver
Shared memory is a thing, and it's exactly what it sounds like. You can learn more about it here:


Once you've learned a thing or two, write a program that does the following:
  1. Connects or creates a shared memory segment large enough to hold a 200 character string.
  2. Displays the contents of the shared memory.
    • If the segment was just created, instead show a message saying as much.
  3. Ask the user if they want to change the data in the segment.
    • If yes, prompt the user to enter a new string and write that to the segment.
  4. Ask the user if they want to delete the segment, if yes, then delete it.
Github submission link
https://github.com/mks65/shmegegge.git
Comments