Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
April 28, 2006, 4:46 pm
rate this thread
pattern is suitable for websites with heavy traffic.
Of course the most common example given is the DB connection, and maybe
a cache of connections, and a checkout/checkin strategy is more
Can use of a Singleton restrict resource usage and cause processing
backlogs, such as deadlock ?
- IvÃ¡n SÃ¡nchez Ortega
April 28, 2006, 5:38 pm
Re: Singleton pattern, Suitable for multi-user websites ?
This is PHP. In PHP, every HTTP request is handled by a different thread, so
there is no possibility of programming a singleton *all along* the
different requests from the different users.
Iván Sánchez Ortega -i-punto-sanchez--arroba-mirame-punto-net
Un ordenador no es un televisor ni un microondas, es una herramienta
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
-----END PGP SIGNATURE-----