This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [NPTL docs] pthread robustness and pthread_mutex_consistent


2017-08-07 15:33 GMT+08:00 Patrick Schlangen <patrick@schlangen.me>:
> Hi Yubin,
>
>> However some threads might die inadvertently with the lock hold,
>
> I know it's not specifically answering your question, but how can a thread
> in your application 'die'?

A programmer can call pthread_kill(), or call pthread_exit() wrongly (at the
wrong place). I don't know. I am writing some library so I have to
cover all the possibility.

> I'm just wondering how such a situation can happen. If you have an issue in
> an application where locks are not properly released, you would usually debug
> why that's happening and not try to work around the issue.

Yubin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]