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.
...
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.
...
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...
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...
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?
...
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
...
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...
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...
...
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 ...
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...
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...
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...
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...
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...
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...
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...
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, ...
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...
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?
...
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...