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: private functi<strong>on</strong>s<br />

• Mercury thread-private functi<strong>on</strong>s<br />

− Have a per-thread memory area that the kernel knows<br />

about; used by the Mercury library, not directly by user<br />

code<br />

− If changed, the kernel updates when returning to user<br />

space after a system call or after a trap has occurred.<br />

− C<strong>on</strong>sist of various time-related functi<strong>on</strong>s, various c<strong>on</strong>text<br />

switch related functi<strong>on</strong>s (including setting critical<br />

regi<strong>on</strong>s), and getting the CPU number you are running<br />

<strong>on</strong><br />

− Run fast because they are mostly just memory<br />

operati<strong>on</strong>s, not system calls<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!