Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

166
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda