views:

38

answers:

1

What is the difference between sema_init and sem_init ? Are there any specific usage scenarios and other dependencies for the respective APIs ?

+1  A: 
  • sema_init is from the Solaris thread library.
  • sem_init is from the Posix pthread library.

See Threads: Basic Theory and Libraries

Sjoerd