Re: Change default behavior of semaphores?

2022-01-05 Thread Xiang Xiao
On Thu, Jan 6, 2022 at 4:23 AM Gregory Nutt wrote: > > I truly believe that priority inheritance on counting semaphores should > be > > explicitly enabled (disabled by default) and enabling it by default might > > lead to unexpected priority boost for low priority tasks that violates > > real-tim

Re: Change default behavior of semaphores?

2022-01-05 Thread Petro Karashchenko
Hi, Yes, POSIX does not support priority inheritance on counting semaphores, but priority inheritance things seems to be already broken for a long time. I mean the changes like https://github.com/apache/incubator-nuttx/pull/5170 just highlight the top of an iceberg. For the POSIX compliance of pt

Re: Change default behavior of semaphores?

2022-01-05 Thread Gregory Nutt
More background: https://nuttx.yahoogroups.narkive.com/3hggphCi/problem-related-semaphore-and-priority-inheritance On Wed, Jan 5, 2022 at 2:22 PM Gregory Nutt wrote: > > I truly believe that priority inheritance on counting semaphores should > be > > explicitly enabled (disabled by default) and

Re: Change default behavior of semaphores?

2022-01-05 Thread Gregory Nutt
> I truly believe that priority inheritance on counting semaphores should be explicitly enabled (disabled by default) and enabling it by default might lead to unexpected priority boost for low priority tasks that violates real-time requirements. It has been enabled by default since day one so

Re: Change default behavior of semaphores?

2022-01-05 Thread Petro Karashchenko
Going more forward from POSIX pthread mutex protocol description: The protocol attribute defines the protocol to be followed in utilizing mutexes. The value of protocol may be one of: - PTHREAD_PRIO_INHERIT - PTHREAD_PRIO_NONE - PTHREAD_PRIO_PROTECT which are defined in the header. The default

Re: Change default behavior of semaphores?

2022-01-05 Thread Petro Karashchenko
Hi team, Sorry I probably missed some part of discussion. So it was decided to keep priority inheritance ON for counting semaphores by default if the feature is enabled? And we are modifying all the POSIX by adding explicit setting to SEM_PRIO_NONE? I truly believe that priority inheritance on co

Re: Change default behavior of semaphores?

2022-01-05 Thread Xiang Xiao
Here are the two patch which demo that POSIX compliant code crash directly when CONFIG_PRIORITY_INHERITANCE is enabled: https://github.com/apache/incubator-nuttx/pull/5170 https://github.com/apache/incubator-nuttx-apps/pull/960 Please give your more feedback at https://github.com/apache/incubator-n

RE: Top Apache Projects

2022-01-05 Thread Alin.Jerpelea
Thanks for sharing! -Original Message- From: Nathan Hartman Sent: den 5 januari 2022 04:22 To: dev@nuttx.apache.org Subject: Re: Top Apache Projects On Tue, Jan 4, 2022 at 9:08 PM Gregory Nutt wrote: > > Interesting: > https://urldefense.com/v3/__https://thestack.technology/top-apache-

RE: Top Apache Projects

2022-01-05 Thread Alin.Jerpelea
The last commits on Licenses are almost done and I will push them ASAP then we will open a discussion thread to see what we do with the orphan ones Best regards Alin -Original Message- From: Xiang Xiao Sent: den 5 januari 2022 06:48 To: dev@nuttx.apache.org Subject: Re: Top Apache Pro