You are here: Re: Semaphore handling « PHP Programming Language « IT news, forums, messages
Re: Semaphore handling

Posted by Ratvin on 07/06/06 09:16

Marek Simon can u pls tell me what do you exactly intend in that first
idea.

Thanks,

Ratheesh K J

Ratvin wrote:

> I am not very clear about the 1st idea. The 2nd idea can be looked
> into.
>
> At the same time i would like to know whether message queues would help
> in synchronization?
>
> Any suggestions!!!
>
> Thanks,
>
> Ratheesh K J
>
> Marek Simon wrote:
>
> > 1st idea. try to aquire semaphore and remove it only if aquire was
> > succesfull.
> > 2nd idea. prevent creating new semaphores and reuse the old.
> > Marek
> >
> > Ratvin napsal(a):
> > > sem_remove will cause trouble if there are other processes blocking on
> > > the semaphore. This has already been tried.
> > >
> > > Is there any way to remove a semaphore only if there are no processes
> > > waiting on it?
> > >
> > > I mean to say that if there are processes blocking on the sem then
> > > release the semaphore after use otherwise remove it.
> > >
> > > I m in search of the best possible strategy to do this....
> > >
> > > Any suggestions?
> > >
> > > Thanks
> > > Ratheesh K J
> > >

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация