You are here: Re: About Resource id's « PHP Programming Language « IT news, forums, messages
Re: About Resource id's

Posted by Gordon Burditt on 10/29/07 00:19

>I wrote a script but it takes too long to reach that number =). I
>guess I should not worry about it, but it would be more natural (imo)
>to reuse freed resource id slots.

I disagree. It is not a good idea, or more "natural" (whatever
that means) to re-use freed resource id slots *quickly*. You don't
want old references to resources (even ones saved in databases or
web clients, which is a bad idea but people will do it anyway)
referring to valid new resources accidentally.

Consider the situation with process IDs. Some systems re-use process
IDs somewhat faster than what fits in a 16-bit number, but it is
NOT a good idea to be sure that there is almost always a PID #2,
and if there isn't one already in use, it will be the next one
assigned.

 

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

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