in reply to Re^4: atomic tie?
in thread atomic tie?

OP didn't give much information. If it's a single perl process then the race condition would be in the database. If he is using fork (e.g.,) and making the DB calls inside of one of the 2+ perl processes this implies, then he could have a race condition. No? Can't tell unless we get more information.

Replies are listed 'Best First'.
Re^6: atomic tie?
by ikegami (Patriarch) on Aug 24, 2024 at 16:47 UTC

    then the race condition would be in the database.

    A database alone is not a system that ends up in a race condition. You could have a race would be between the programs/processes/threads using a database, for example. The system suffering from the race condition would entail not the just the database, but those programs/processes/threads too.

    then he could have a race condition.

    I didn't say that forking couldn't lead to a race condition.

    Can't tell unless we get more information.

    I only said your claim that race conditions necessarily come from forking a Perl process was false. No extra information is needed for this.