You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/02/03 00:07:37 UTC

[GitHub] [incubator-nuttx] patacongo commented on issue #2787: Use of Semaphores in KERNEL mode

patacongo commented on issue #2787:
URL: https://github.com/apache/incubator-nuttx/issues/2787#issuecomment-772102603


   Other OSs do not use semaphores to signal between the OS and applications.  That is a behavior unique to NuttX.  But how would this handled in other OSs?  Most likely via the second parameter to the `sem_init()` call:
   
       If the pshared argument has a non-zero value, then the semaphore is shared between processes; in this case, any
       process that can access the semaphore sem can use sem for performing sem_wait(), sem_trywait(), sem_post(),
       and sem_destroy() operations.
   
   The `pshared` argument is currently ignored in NuttX.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org