Is it safe to retrieve data using multithreading?

I am new to multithreading.

  • I have a database with 8 tables on the server.
  • I connect to the database directly using an Android device.
  • I want to get data from a server and paste it into a client database (SQLite).
  • I have a function that inserts all the data from the server into the client, and I call this function for each table.

Is it safe to make 8 threads, one for each table? I use TTask.

+4
source share
1 answer

Theoretically, this should be safe, assuming that each table is accessed using a separate thread, and no data is shared between the threads.

, "", , , .

, .

+4

Source: https://habr.com/ru/post/1696030/


All Articles