Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

160
Views
why semaphore is considered as a IPC?

In all books semaphore is listed under IPC mechanism? Why is it like that? Because what I know is that semaphore is used for synchronization.

I have read one similar question in this forum but, that didn't cleared the doubt.

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

man page for sem_overview tells (with description how to do it) :

POSIX semaphores allow processes and threads to synchronize their actions.

therefore semaphores can be used for interprocess communication.

over 4 years ago · Santiago Trujillo Report

0

well in linux there are basically two types of semaphores

named semaphores
unnamed semaphores

and I think here unnamed semaphores is basically known for IPC mechanism plus locking mechanism both.and named one are only used for locking mechanism

this link can be useful

over 4 years ago · Santiago Trujillo Report

0

I think the reason is because of named semaphores.
There are two types of semaphores, named and unnamed.

Usually named semaphores are used for processes synchronization, whereas unnamed semaphores are used for threads synchronization.

This Multithreaded Programming Guide says

Named semaphores are like process-shared semaphores, except that named semaphores are referenced with a pathname rather than a pshared value. Named semaphores are sharable by several processes.


*It is possible to share unnamed semaphores (with child processes for example) among process but it is not common.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!