【文章內(nèi)容簡介】
s t h a t m a y b e i n d i f f e r e n t s y s t e m s .B S DB a r r i e r s S o f t w a r e o b j e c t s u s e d t o e n s u r e t h a t a l l p r o c e s s e s i n a g r o u p a r e r e a d y b e f o r e a n y o f t h e m p r o c e e d .I R I XM e s s a g e Q u e u e sS o f t w a r e o b j e c t s u s e d t o e x c h a n g e a n o r d e r e d s e q u e n c e o f m e s s a g e s .P O S I X , S V R 4S e m a p h o r e s S o f t w a r e o b j e c t s u s e d t o c o o r d i n a t e a c c e s s t o c o u n t a b l e r e s o u r c e s .P O S I X , I R I X , S V R 4L o c k s , M u t e x e s , a n d C o n d i t i o n V a r i a b l e sS o f t w a r e o b j e c t s u s e d t o e n s u r e e x c l u s i v e u s e o f s i n g l e r e s o u r c e s o r c o d e s e q u e n c e s .P O S I X , I R I XS i g n a l s A m e a n s o f r e c e i v i n g n o t i c e o f a s o f t w a r e o r h a r d w a r e e v e n t , a s y n c h r o n o u s l y .P O S I X , S V R 4 , B S DS h a r e d m e m o r yA w a y t o c r e a t e a s e g m e n t o f m e m o r y t h a t i s m a p p e d i n t o t h e a d d r e s s s p a c e o f t w o o r m o r e p r o c e s s e s , e a c h o f w h i c h c a n a c c e s s a n d a l t e r t h e m e m o r y c o n t e n t s .P O S I X , I R I X , S V R 4SMU SM POSIX vs. IRIX Shared Memory POSIX Function Name Purpose and Operation mmap(2) Map a file or shared memory object into the address space shm_open(2) Create, or gain access to, a shared memory object. shm_unlink(2) Destroy a shared memory object when no references to it remain open. IRIX Function Name Purpose and Operation usconfig(3) Establish the default size of an arena, the number of concurrent processes that can use it, and the features of IPC objects in it. usinit(3) Create an arena or join an existing arena. usadd(3) Join an existing arena. SMU SM usconfig options usconfig() Flag Name Meaning CONF_INITSIZE The initial size of the arena segment. The default is 64 KB. Often you know that more is needed. CONF_AUTOGROW Whether or not the arena can grow automatically as more IPC objects or data objects are allocated (default: yes). CONF_INITUSERS The largest number of concurrent processes that can use the arena. The default is 8。 if more processes than this will use IPC, the limit must be set higher. CONF_CHMOD The effective file permissions on arena access. The default is 600, allowing onl