Questions tagged [access-synchronization]

Process of establishing consistency among systems and subsequent continuous updates to maintain consistency.

4 questions
10
votes
12 answers

what is the best way to synchronize container access between multiple threads in real-time application

I have std::list infoList in my application that is shared between two threads. These 2 threads are accessing this list as follows: Thread 1: uses push_back(), pop_front() or clear() on the list (Depending on the situation) Thread 2: uses an…
red.clover
  • 1,788
  • 2
  • 18
  • 32
5
votes
4 answers

How to synchronize the access to a List used in ASP.NET?

I have some problems on a site with the concurrent access to a list. This list keeps a cart of items, and multiple deletes are crashing the site. Which is the best method to sync them? Is a lock enough? The lock option seems to be ugly because the…
Adrian Magdas
  • 613
  • 1
  • 8
  • 16
0
votes
1 answer

Opencl: global thread synchronization between two loops

I have an opencl kernel that computes two global buffers in two loops. The first loop does some computations with a global thread and writes the result to the output buffer "OutBuff". Then the second loop updates the values of the global buffer…
0
votes
1 answer

MySQL synchronization questions

I have a MySQL DB which manages users’ accounts data. Each user can only query he’s own data. I have a script that on initial login gets the user data and inserts it to the DB. I scheduled a cron process which updates all users’ data every 4…
embedded
  • 319
  • 1
  • 6
  • 14