<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Simone Fumagalli ha scritto:
<blockquote cite="mid:47147DFA.8000704@tomato.it" type="cite">
  <pre wrap="">Domenico L. wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">lock table?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Potrebbe funzionare se lo script durasse pochi secondi.

Il punto è che lo script gira per circa 2 minuti e se metto in lock la
tabella la percezione dell'utente è quella che il sistema si è bloccato
in quanto gli script rimarrebbero "appesi" sino a quando la tabella è in
lock.
  </pre>
</blockquote>
Solo uno spunto<br>
<br>
<div class="PhorumReadBodySubject">Re: How to check if table is locked</div>
<div class="PhorumReadBodyHead"> Posted by: <a
 href="http://forums.mysql.com/profile.php?97,139678"><strong>KimSeong
Loh</strong></a> () </div>
<div class="PhorumReadBodyHead"> Date: July 06, 2005 07:48PM</div>
<br>
<div class="PhorumReadBodyText"> You can create a user defined lock
with GET_LOCK(str,timeout), see [<a rel="nofollow"
 href="http://dev.mysql.com/doc/mysql/en/miscellaneous-functions.html">dev.mysql.com</a>]
<br>
<br>
Do a get_lock with timeout 0, before your LOCK TABLE and release_lock
after your UNLOCK TABLES.
<br>
Another thread running the get_lock will return a value 0 to indicate
the locks is being held by another thread.
<br>
<br>
You have to be consistant to make this work, and it will not work if
any thread LOCK TABLES without calling get_lock first.</div>
<br>
<br>
M.<br>
<pre class="moz-signature" cols="72">-- 
Michel 'ZioBudda' Morelli                       <a class="moz-txt-link-abbreviated" href="mailto:michel@ziobudda.net">michel@ziobudda.net</a>
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 --  Fax: +39-0291390660

<a class="moz-txt-link-freetext" href="http://www.ziobudda.net">http://www.ziobudda.net</a>                         ICQ: 58351764  
<a class="moz-txt-link-freetext" href="http://www.ziobuddalabs.it">http://www.ziobuddalabs.it</a>                      Skype: zio_budda
<a class="moz-txt-link-freetext" href="http://www.ajaxblog.it">http://www.ajaxblog.it</a>                                MSN: <a class="moz-txt-link-abbreviated" href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a>                   
                                                JABBER: <a class="moz-txt-link-abbreviated" href="mailto:michel@gmail.com">michel@gmail.com</a>
</pre>
</body>
</html>