What is Shm: Definition and 502 Discussions

The MIT Shared Memory Extension or MIT-SHM or XShm is an X Window System extension for exchange of image data between client and server using shared memory (/dev/shm). The mechanism only works when both pieces are on the same computer.
The basic capability provided is that of shared memory XImages. This is essentially a version of the ximage interface where the actual image data is stored in a SysV shared memory segment, and thus need not be transferred across the socket to the X server. For large images, use of this facility can result in some real performance increases.
Additionally, some implementations provide shared memory pixmaps. These are two-dimensional arrays of pixels in a format specified by the X server, where the image data is stored in the shared memory segment. Through use of shared memory pixmaps, it is possible to change the contents of these pixmaps without using any Xlib routines at all. Shared memory pixmaps can only be supported when the X server can use regular virtual memory for pixmap data; if the pixmaps are stored in the on-board memory of graphics hardware, an application will not be able to share them with the server.
In the 1.15 release of the X.org server the MIT-SHM extension gains two additional requests: 'X_ShmAttachFd' and 'X_ShmCreateSegment', to be able to pass shared memory through file descriptors from client to server and from server to client, reducing the number of copy operations further.

View More On Wikipedia.org
  1. T

    Calculate Particle's Speed in SHM with Period of 2.4 s and Amplitude of .1 m

    A particle vibrates in SHM with the period of 2.4 s and the amplitude of .1 m. a) How long is required for the particle to move from one end of its path to the nearest point .05 m from the equilibrium position? b) What is the particle's speed at this position? for a) this is what I did...
  2. jimmy p

    SHM: What Factors Affect the Period of a Pendulum?

    SHM - easy question! Hi i know that this is probably an extremely easy and obvious question, but we are looking at pendulums in A2 physics and i was just wondering if there are any other factors affecting the period of a pendulum other than these: - Length of string - Mass of pendulum -...
Back
Top