Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

163
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda