Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

napoleon_in_rags

(3,992 posts)
3. Pretty much any web platform will come with a good degree of thread safety.
Sun Jun 16, 2013, 05:42 PM
Jun 2013

You want to make sure your connection to the database is thread safe, then what's the worry? Of course you understand if your code is like

f = open_file("something.txt", "rb&quot
sleep(random_amount)
f.write(something)
f.close()

than you run the risk that a second user will click the same page while its still sleeping, and won't be able to access the file. But generally, if you keep all the data in functions or in the database, its safe.

Recommendations

0 members have recommended this reply (displayed in chronological order):

Latest Discussions»Retired Forums»Website, DB, & Software Developers»Do I need to worry about ...»Reply #3