synchronization

How to synchronize two Subversion repositories?

My company has a subsidiary with a slow Internet connection. Our developers there suffer to interact with our central Subversion server. Is it possible to configure a slave/mirror for them? They would interact locally with the server and all the commits would be automatically synchronized to the master server. This should work as tran...

C# play a sound wait for it to finish then do something?

Hey I'm writing a windows forms application which is supposed to play a three sound files and at the end of each sound file it's to change the source of an image. I can get it to play the sounds using System.Media.SoundPlayer. However it seems to play the sound in a different thread, continuing on. The net effect of this is that only t...

.NET File Sync Library

Is there a good .NET file syncing library? It can be pretty basic and only needs to work on local and mapped drives (no server client model like rsync is needed). And yes, I know there is the MS Sync Services, but that is a lot more than what I need. ...

AutoLock in Java - how to ?

What is the best way to free resources (in this case unlock the ReadWriteLock) when leaving the scope ? How to cover all possible ways (return, break, exceptions etc)? ...

Java 1.4 synchronization

I have a class proposing translations utilities. The translations themselves should be reloaded every 30 minutes. I use Spring Timer support for that. Basically, my class looks like : public interface Translator { public void loadTranslations(); public String getTranslation(String key); } loadTranslations() can be pretty long ...

In Java, do I need to declare my collection synchronized if it's read-only ?

I fill a collection one single time when my J2EE webapp starts. Then, several thread may access it at same time but only to read it. I know using a synchronized collection is mandatory for parallels write but do I still need it for parallels read ? ...

Double checked locking Article

Hi all, I was reading this article about "Double-Checked locking" and out of the main topic of the article I was wondering why at some point of the article the author uses the next Idiom: Listing 7. Attempting to solve the out-of-order write problem public static Singleton getInstance() { if (instance == null) { ...

When would I use AutoResetEvent and ManualResetEvent instead of Monitor.Wait/Monitor.Pulse in .net?

They both seem to fulfil the same purpose. When would I chose one over the other? ...

How to wait on another process's status in .NET?

I'm working on an integration testing project in .NET. The testing framework executable starts a service and then needs to wait for the service to complete an operation. What is the best approach for the exe to wait on the service to complete its task (the service itself will not exit upon task completion)? Both processes have access t...

Utility to get the latest version of a windows forms app from a network share

Is there any utility that will copy the "official" build of a windows forms app from a central network share and launch it (from a client desktop)? I want to make sure users get the latest version when I update the binaries on the central network share. ClickOnce is user un-friendly so I'm looking for something else... ...

Thread synchronization question (in java)

Hello, my java application has a loading task which requires two server calls which can be parallelized. So I launch a Thread t1 (doing task1) and a Thread t2 (for task2). I want then to do a specific task, task3 when both other tasks (1 & 2) are over. Naturally I can't tell which of task1 and task2 will finish first... Which would be f...

CDO: Outlook contact sync - How to identify the correct object to sync with?

I have a web application that syncs Outlook contacts to a database (and back) via CDO. The DB contains every contact only once (at least theoretically, of course doublets happen), providing a single point of change for a contact, regardless of how many users have that particular contact in Outlook (like Interaction or similar products). ...

PHP 5.x syncronized file access (no database)

Hi, I'm mostly familiar with Java, C and C++ in which there are ways to control that only one thread is accessing a resource at any given time. Now I'm in search for something similar but in PHP 5.x. To formulate my problem with one example: I have an ASCII-file which only stores a number, the value of a page load counter. At applicat...

What JDBC tools do you use for synchronization of data sources?

Hello. I'm hoping to find out what tools folks use to synchronize data between databases. I'm looking for a JDBC solution that can be used as a command-line tool. There used to be a tool called Sync4J that used the SyncML framework but this seems to have fallen by the wayside. ...

synchronizing io operation in java on a string method argument?

Basically, I have a class with 2 methods: one to serialize an object into an XML file and another to read an object from XML. Here is an example of synchronized part from the method that restores an object: public T restore(String from) throws Exception { // variables declaration synchronized (from) { try { de...

Design problem: shared, synchronized, data access in application... the best approach?

I have a web application (asp.net) where work items are submitted and allocated to users according to their workload. A user's workload is calculated using an algorithm based on the number of items currently allocated to the user (and some other factors). Each new item is allocated to the user with the lowest current workload, increasin...

WaitForObject

can anyone please tell me what is the return value of WaitForObject() function . I do not mean the type of return value (int ) . What does it return if the event is signalled and what does it return if the event is not signalled . Thanks ...

Synchronizing a variable between client and server

Hello, Say I've got a client-side counter variable. When I send a request to the server, I send this variable's value, then increment it by one (for the next request to the server). The server keeps track of this counter independantly, and checks to make sure that the count sent by the client is 1 more than it's own (server-side) copy o...

Are there any differences between Java's "synchronize" and C#'s "lock"?

I think the question is pretty self-explanatory. Do these two keywords have exactly the same effect, or is there something I should be aware of? ...

On XP, best way to synchronize files and folders.

I'm using SyncToy 1.4 and it would be fine for what I need except that: It can't handle the assigned drive letter changing between systems (e.g. syncing a USB drive), it leaves its own (hidden) files in the folders being synched (is this a limitation of the OS/FS?), it recreates empty folders for ones that have been deleted, it syn...