当前位置: 动力学知识库 > 问答 > 编程问答 >

php - Concurrently access MySQL database

问题描述:

I am creating my first Android app which requires access to MySQL database. My web service is hosted on my web server to allow the app and database to exchange data.

If two users are using the app at the same time, two instances of my program will be running. My PHP script returns a JSON array with some database results in this file on my web server - http://123.4.56.789/returnBooking.php"

Will the second customers data overwrite the first customers data, or as two different instances have been created, there will not be a problem?

Also is this thread safe? Should I create a new thread for each new customer?

网友答案:

As zoran404 stated "All clients on the server will have the impression as if the server is working just for them. They wont interact."

分享给朋友:
您可能感兴趣的文章:
随机阅读: