how does the ZTS work / where are the mutexes?
| From: | Thies C. Arntzen | Date: | Mon, 16 Aug 1999 14:19:07 +0000 |
| Subject: | how does the ZTS work / where are the mutexes? | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-3449@lists.php.net to get a copy of this message | ||
hi,
got a few questions regarding the thread-save-mode:
1. how many plist are there (ZTS-mode)? in theory there should be only one, right?
2. all the mutexing is done in zend_hash_add_or_update and friends, right?
3. what happens if 2 requests try to add a persistend connection at the
same time - or - should we 1st add to plist and then open the connection,
or 1st open the connection and then add to plist?
4. when & who calles the plist destructors in ZTS mode?
5. is all the MUTEX stuff in ext/*.c obsolete? (same goes for #ifdef
THREAD_SAFE) - and should we *slowly* remove that code
6. can you think of any place where we need to do mutexing ourself?
7. last but not least, is ISAPI the only testbed fot the ZTS stuff?
regards,
tc
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany