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

289
Vistas
Posix Semaphores source code location in linux

I have started learning semaphores concept in Operating System. I am using POSIX semaphores in linux. I have used sem_init(), sem_wait() and sem_post() for initializing, decrementing and incrementing semaphore variables.

I have seen Function declarations given in semaphore.h file.

But I couldn't find source code of these above functions. I have gone through some kernel source files but I couldn't find them. From where can I get these source code files?

I am using linux 3.6.11-4 kernel.

Thanks.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Unlike the older "SysV IPC" semaphores (semctl, semop, etc), the POSIX semaphore API is not implemented directly by the kernel. Instead, the C library implements it on top of the futex generic synchronization primitive.

The code you are looking for is in the nptl subdirectory of the GNU libc source tree. You may also have to go digging around in sysdeps to find all of it.

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