Re: prevent threads with a sequential task running parralelly to update table in a sequential manner

From: Jerry Stuckle <jstucklex_at_attglobal.net>
Date: Tue, 28 Mar 2017 10:50:31 -0400
Message-ID: <obdt24$256$1_at_jstuckle.eternal-september.org>


On 3/28/2017 10:01 AM, kushal bhattacharya wrote:
> hi,
> Sorry i couldnt post the workaround which i did here. I waited for the expected update to occur in one query .If it doesn't occur then i make the thread sleep for some milliseconds.If it is there then the corresponding row manipulation is done.
> Is it the correct workaround?
> Thanks,
> Kushal
>

Kushal, entire books have been written about multithreading and the problems they can have. If you're going to use multithreading, you need to learn how to do it correctly - which is way outside the ability of any newsgroup to teach you (and is not a MySQL question).

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex_at_attglobal.net
==================
Received on Tue Mar 28 2017 - 16:50:31 CEST

Original text of this message