Re: [PHP] Shared variable / exclusive locking?
ok, so the solution is shm or shmop, but there is something I'm not sure about it... the way I wanna go is shm and sem and the things that are clear are: - use sem to block multiple processes(or threads) writing to the same shm block - there is no need to use sem for reading since multiple processes(threads) can read safely from the same shm block what is not that clear is... what happens when a process reads and another writes exactly at the same time? do the read operations behave like some sort of transactions that ensure you get the content available in the shm block at the beginning of the read even when it is changed during the read? I guess this is not the case, so how would you handle this properly? regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Shared variable
Hello. Is there any oppertunity to create varaibles that can accessed by more than one instances? I need a way to communicate between many php-instances. It can be, that they are not active to the same time. Is there any way without using a file or a database? Mario -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Shared variable
[snip] Is there any oppertunity to create varaibles that can accessed by more than one instances? I need a way to communicate between many php-instances. It can be, that they are not active to the same time. Is there any way without using a file or a database? [/snip] No, in this case you must use either a file or a database. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Shared variable
SHM On Wednesday 09 February 2005 14:51, Mario Stiffel wrote: Hello. Is there any oppertunity to create varaibles that can accessed by more than one instances? I need a way to communicate between many php-instances. It can be, that they are not active to the same time. Is there any way without using a file or a database? Mario -- Best regards, Bostjan Skufca system administrator Domenca d.o.o. Phone: +386 4 5835444 Fax: +386 4 5831999 http://www.domenca.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Shared variable
Mario Stiffel wrote: Is there any oppertunity to create varaibles that can accessed by more than one instances? I need a way to communicate between many php-instances. It can be, that they are not active to the same time. Is there any way without using a file or a database? http://php.net/shmop -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php