On Apr 12, 2:15 am, red floyd
> Alexander Dong Back Kim wrote:
>
> > Hi all,
>
> > I'm working on a Linux machine and using g++. I'm developing an
> > semaphore module for a number of applications in the system.
>
> > My question scenario is, an application can lock a resource which is
> > shared memory segment in this case, after they locked a segment and if
> > they somehow crash then the lock won't be released because the
> > application locked the resource is dead.
>
> > I hope there must be a way to release the lock so solve this problem
> > even the application is crashed unexpectedly.
>
> What is your C++ question? You're OT here. Ask in a Linux newsgroup.
>
> 1. If your question makes sense if you change the language, then it's
> OT in comp.lang.c++.
> 2. If you question would not make sense if you change your platform
> (i.e. linux=>windows), then it's OT in comp.lang.c++.
so what? are you the manager of this group or what? If you don't know
the answer then just shut up.