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

is 128gb ssd enough for gaming?

770


Where is the system32 folder?

677


What is a csv file and how do I open it?

654


What does regsvr32 exe do?

682


Do not have permission to edit hosts file?

711


What is 0x0000007b?

673


How do you find out what program is using a file?

772


Why are dll files missing?

722


Do led monitors flicker?

637


Why dll files are missing?

694


What does logonui exe mean?

675


Where is run exe located?

685


Where do I find the start button?

664


Can ssd have bad sectors?

674


How do I find where a program is installed?

708