In a message dated 1/27/2003 11:21:51 AM Eastern Standard Time, [EMAIL PROTECTED] writes:

proc_doc Y {} {
 
ns_share counter_A
ns_share counter_B
ns_share counter_mutex


ns_mutex lock $counter_mutex

foreach i_index [array names counter_A] {

  set temp_counter_A($i_index) $conter_A($i_index)
  set temp_counter_B($i_index) $conter_B($i_index)
 
  unset $conter_A($i_index)
  unset $conter_B($i_index)
 
}



Is the above the actual snippet from the code?  If so, my guess is the typos ($conter_A, $conter_B instead of $counter_A & $counter_B) are throwing errors and the mutex is not getting freed, causing deadlocking in your app.  Removing the ns_mutex lines from the code wouldn't fix the errors, but the deadlocks would not occur.  Are there any errors in your server log during the times the proc_doc Y runs?

~Rich
_______________________________
i  c      F  r  e  d  e  r  i  s
Software Engineer
AOL Web Services & Publishing

p: 703.265.0364 
e: [EMAIL PROTECTED]

Reply via email to