| Summary: | Does pthread_mutex_trylock really work on the latest FreeBSD release if the mutex is already reserved? | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Heikki.Tuuri <Heikki.Tuuri> |
| Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Heikki.Tuuri
2001-03-31 18:40:01 UTC
State Changed From-To: open->closed This was really an application bug, not a bug in the threads library. The application had a low priority thread that held a mutex needed by a higher priority thread. The higher priority thread kept spinning (pthread_mutex_trylock) waiting for the lower priority thread to release the mutex. The lower priority thread got starved and never got a chance to run. |