Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I was just trying to get two processes to share some data.... I just wanted to know if there is any advantage of using shmget vs creating a file ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2011
    Posts
    2

    Question shmget vs creating a file...


    Hi,
    I was just trying to get two processes to share some data.... I just wanted to know if there is any advantage of using shmget vs creating a file and reading writing from it... it looks to be the same to me.

  2. #2
    Linux Newbie
    Join Date
    Apr 2007
    Posts
    119
    Assuming enough physical memory, there is no disk I/O with shmget.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •