23.07.2013 Views

HP-UX 11i Knowledge-on-Demand

HP-UX 11i Knowledge-on-Demand

HP-UX 11i Knowledge-on-Demand

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Mercury overview: public functi<strong>on</strong>s<br />

Mercury public functi<strong>on</strong>s<br />

• Have a memory regi<strong>on</strong> shared with all threads in the system. This area<br />

is accessed by the Mercury library <strong>on</strong>ly, never directly by the user<br />

code. This regi<strong>on</strong> is read-<strong>on</strong>ly for user threads.<br />

• The kernel updates the informati<strong>on</strong> in this regi<strong>on</strong> as it happens, <strong>on</strong> a<br />

“best effort” basis.<br />

• Only threads that request it will be tracked in this global memory<br />

regi<strong>on</strong>.<br />

• Allow <strong>on</strong>e thread to see what state other threads are in as well as<br />

allow a thread to become a thread with a viewable state<br />

• Run fast because they are mostly memory operati<strong>on</strong>s, not system calls<br />

• Have as their original purpose promoting the efficient use of shared<br />

resources<br />

<str<strong>on</strong>g>HP</str<strong>on</strong>g>-<str<strong>on</strong>g>UX</str<strong>on</strong>g> <str<strong>on</strong>g>11i</str<strong>on</strong>g> v3 Training

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!