What is semaphores and why it is used?

Answer Posted / hajee mohamed

On some UNIX® systems, the system administrator can edit
the /etc/master file and define limits for IPC mechanisms
(semaphores, shared memory segments, and message queues).
The problem with this method is that the higher the limits,
the more memory the operating system uses, and performance
can be adversely affected.

AIX uses a different method. In AIX®, upper limits are
defined for the IPC mechanisms, which are not configurable.
The individual IPC data structures are allocated and
deallocated as needed, so memory requirements depend on the
current system usage of IPC mechanisms.

Semaphores 4.3.0 4.3.1 4.3.2 5.1 5.2 5.3 6.1
Maximum number of semaphore IDs for 32-bit kernel 4096 4096
131072 131072 131072 131072 N/A
Maximum number of semaphore IDs for 64-bit kernel 4096 4096
131072 131072 131072 1048576 1048576
Maximum semaphores per semaphore ID 65535 65535 65535 65535
65535 65535 65535

Is This Answer Correct ?    10 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How much does it cost to replace the hard drive?

507


How do I unregister a dll?

609


How do I reset my toolbar?

491


What is startup folder?

504


Why do files get corrupted?

566






What does it mean to patch a file?

499


What is the difference between system32 and syswow64?

488


Is an exe an assembly?

517


How do I disable wer?

530


Can deleting temp files cause problems?

491


Why is my chrome out of date?

511


Why are so many svchost exe running?

496


How do I empty my downloads folder?

475


How do I change a file to jpeg?

520


How do you compare binary files?

511