VMS Help
CXX, Qualifiers, /GRANULARITY

 *Conan The Librarian

       /GRANULARITY
       /GRANULARITY=option
       /GRANULARITY=QUADWORD (D)

    Controls the size of shared data in memory that can be safely
    accessed from different threads. The possible size values are
    BYTE, LONGWORD, and QUADWORD.

    Specifying BYTE allows single bytes to be accessed from different
    threads sharing data in memory without corrupting surrounding
    bytes. This option will slow runtime performance.

    Specifying LONGWORD allows naturally aligned 4-byte longwords
    to be accessed safely from different threads sharing data in
    memory. Accessing data items of 3 bytes or less, or unaligned
    data, may result in data items written from multiple threads
    being inconsistently updated.

    Specifying QUADWORD allows naturally aligned 8-byte quadwords
    to be accessed safely from different threads sharing data in
    memory. Accessing data items of 7 bytes or less, or unaligned
    data, might result in data items written from multiple threads
    being inconsistently updated. This is the default.
  Close     Help