synchronisation

C++ multithreading problem - is mutex the only way?

I have a counter variable which will be accessed by multiple threads which will increment/decrement it. It should not be updated by multiple threads at the same time. I know that you can create a mutex object which has to be obtained before the variable in question can be changed. A critical section in this case is not appropriate becau...

Fastest synchronisation

I have the following scenario: The program has a reader and a writer thread to a socket which is an external application. The reader and writer need to work in coordinated cycles. The writer sends a dynamic number of messages (x) to the socket and the reader needs to read the responses from the socket. The number of messages is over 5 to...

Occasionally online app data synchronisation

Hi, I am writing an application which consists of a master "server" database (most probably sqlite) and a client side replica with client specific records (again, Sqlite). The clients may only be online occasionally or may be on slow 3G connections; I need a solution to reliably synchronise content either on demand or at scheduled inter...

Progress mysql synchronisation

The situation: 1 Progess DB server running on Unix 1 MySQL DB server running on Ubuntu The Progress database has to be synced every night with the MySQL DB. We figured this could be done via a PHP sync script. The script connects to Progress via an ODBC driver, fetches the table and the php scripts runs through every row and formats th...

ZSync tutorial - Syncing CoreData data between devices

I am interested in syncing CoreData data amongst several apps running on iPhone, iPad and MacOSX. I found ZSync project from Mr Zarra but did not find any related tutorial. I contacted Mr Zarra who is always working on improving ZSync (thanks for that) and do not have planned yet to write a tutorial. Any of you have implemented ZSync fu...

Best way to synchronize asynchronous task

Hi there, My Problem: I've got 802.15.4 Wireless network connected to a serial port (using a wrapper). I can send packages into the network and listen for incoming packages. As you can imagine this is highly asynchronous. Here comes the task: I want to send commands to the network and wait for the response in one function call. For Ex...