synchronization

DropBox synchronization technique.

I am currently developing an application using dropbox c# API. DropBox is able to capture changes on their server and also the changes in their client almost immediately. What technique they use to synchronize this 2 replicas? Wish someone can provide me some clue to start with, I try to avoid the timer base synchronization. Thanks. ...

Starting pthreads simultaneously

What are the different ways of ensuring that a bunch of pthreads all start at the same time? I could find only one way, ie. initializing a barrier in the main thread, then waiting on it in the newly created pthreads. ...

Synchronize Data Access

Some years ago I built an Excel file for my colleagues that displays lots of data from an external ODBC data source. The data is partitioned into lots of data tables in different sheets. The file also contains a button that allows the user to update the data. Since accessing the data from the external source was very slow, I implemented...

How best to synchronize memory access shared between kernel and user space, in Windows.

I can't find any function to acquire spinlock in Win32 Apis. Is there a reason? When I need to use spinlock, what do I do? I know there is an CriticalSectionAndSpinCount funtion. But that's not what I want. Edit: I want to synchronize a memory which will be shared between kernel space and user space. -The memory will be mapped. I shou...

How can I hook up my outlook calendar to a website?

I want to publish some kind of feed that outlook can read and use to populate its calendar. I'm not having any luck discovering how to do this. Can anyone point me in the right direction? ...

The Best Way For Transfer Data From One DataBase (sql server 2008) To Another db(sql server 2008) With Different Schema....

hi my dear friends : what is the best way For Transfer Data From One DataBase (sql server 2008) To Another db(sql server 2008) With Different Schema? is there a program for doing that ? thanks 4 your future asnwer best regards ...

MySQL multi-server tasks fall-back mechanism

I have two web servers. Server 'A' and server 'B'. Both are exact duplicate of the other and are connected to a load-balancer for serving clients. I have a tasks (cronjob) that is executed at every hour, every day. This task is currently running only on server 'A'. The problem is that this tasks is really important and if server 'A' cra...

C# function synchronization

Possible Duplicate: C# version of java's synchronized keyword? Is there an equivalent in c# to the java synchronized keyword for functions? I wish to synchronize a function rather than just a block... ...

Share one variable between threads ?

Hi everybody ! i have this scenario: class MyClass { Producer p; Consumer c; public static void main(String[] args){ BlockingQueue q = new LinkedBlockingQueue(); p = new Producer(q); c = new Consumer(q); Thread t = new Thread(p); t.start(); new Thread(c).start(); while ...

How to synchronize data between multi client application

I need to synchronize the data that "one client" updated and need to be refreshed on "other client" (on another room) of the same application. 1 - Which is the best approach to doing this? I was thinking on SqlDependency but the application can also run on other database engines (I dismiss it) I also think of a timer polling for update...

Free quality synchronization software? (backup software)

I have started working on larger projects using PHP, and I'm realizing how bad it would suck if the virtual machine I'm storing it all on were to crash or get deleted somehow. So I looked into synchronization in Ecplipse and got dissapointed. I was hoping for a function that would save my file to several locations instead of just one. A...

Send mail as transactionally as possible

Hi all, I have a simple program that polls a DB table every so often and sends any mail that the table indicates is pending (using javax.mail). When the mail is sent I delete the DB entry. I have noticed two potential problems There's the potential to send a mail and then something crashes so the DB entry is still there. The next t...

Efficient cache synchronization

Consider this public Object doGet() { return getResource(); } private Object getResource() { synchronized (lock) { if (cachedResourceIsStale()) { downloadNewVersionOfResource(); } } return resource; } Assuming that doGet will be executed concurrently, and a lot at that, and that downloadin...

Unix process synchronization without pthreads/sempahores, signals?

Hello, I am attempting to write a program that doesn't use pthreads or semaphore libraries. I want to do some synchronization with signals. I have read about them in a few Unix books, but I still don't quite get it. I wrote up some mock program design/code, this isn't my program but it gives an idea of how I am trying to organize process...

Data cache on filesystem, C#

Hi, In a software (client-server arch.) I would like to create a cache in local filesystem for some data received over network. (they are marked as DataContract and Serializable). The data can be modified by other users so must be syncronized. In a few words: I need something like Outlook's *.ost files for Exchange. What is the best p...

Asserting order of synchronization in Java

In highly concurrent systems, it can be difficult to be confident that your usage of locks is correct. Specifically, deadlocks can result if locks are acquired in an order that was not expected while being acquired in the proper order in another thread. There are tools (e.g. Coverity) which can do static analysis on a code base and loo...

How to synchronize multiple video streams in ActionScript?

I'm trying to play multiple video streams simultaneously. However, I cannot synchronize these videos to play at the same rate. ---- details -------- I have three 45-second videos in FLV format and I use flash.net.NetStream to play these videos. I call netstream.play() of these netstream at the same time (by using a for-loop). However, ...

how to syncronize methods in actionscript?

The question is how could I stop a method being called twice, where the first call has not "completed" because its handler is waiting for a url to load for example? Here is the situation: I have written a flash client which interfaces with a java server using a binary encrypted protocol (I would love to not have had to re-invent the w...

How can I sync my MSSQL database to MySQL?

I am using MSSQL as my transactional database. This database has 200+ tables with about 25 tables that hold 1M plus records. I want to replicate the data with the same structure into a MySql database for reporting. Is there a tool or method that can do this in a fairly real time manner? ...

Encapsulating Mutexes (or other synchronization primitives)

In all the code I've written, I have always made synchronization primitives wrapped in a single class. If my design ever produced an unencapsulated synch primitive, I redesigned until it was indeed encapsulated. But is there a well-known design force or development circumstance (besides legacy code) that would require unencapsulated sy...