O'Reilly logo

Advanced UNIX Programming by Warren W. Gay

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Referencing IPC Resources

The UNIX kernel provides IPC ID values for processes to refer to specific instances of message queues, shared memory, and semaphore sets. The IPC ID is an integer value that is determined by the kernel, and is not known by the calling process until it has been returned in a create call. The IPC ID can be zero or positive, but it is never negative. The IPC ID is similar to a file descriptor for a specific IPC resource.

Although the IPC ID value is a convenient handle for resources once they are created, they are not well suited for a prearranged rendezvous. If three different processes must attach to a shared memory region, how do the two processes that did not create the shared region find out what the IPC ID of that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required