synchronization

Object vs byte[0] as lock

I commented earlier on this question ("Why java.lang.Object is not abstract?") stating that I'd heard that using a byte[0] as a lock was slightly more efficient than using an java.lang.Object. I'm sure I've read this somewhere but I can't recall where: Does anyone know if this is actually true? I suspect it's due to the instantiation o...

How to use git for file synchronization?

I have a need for distributed file synchronization. So first of all, any suggestions? My idea is git since speed is an issue. My git knowledge is pretty rudimentary though so here's what I did. I downloaded the portable git (I'm on PC so msysgit). I placed a copy into c:\root\git and a copy into c:\root\git c:\client\git\ I created ...

When and why would I use Java synchronization?

What is the purpose of Java synchronization, and how should I use it? ...

svn server synchronise automatically

I have a svn server on our lan locally its on windows. The developers use and check in/out from that. Just to be on the safer side we have took up a server from rackspace a linux one. Is it possible to do an automatic weekly synchronise from the local svn server to the remote one. The remote one will be mainly used as a remote backup but...

How to synchronize files in load balanced instances?

One of the challenges that we face during deployments on multiple load balanced instances is – the risk of not deploying the latest code base to one or more load balanced instances. Idea is to use only one instance for direct deployment and entrust sync up to a script that syncs up selected list of folders to the other load balanced in...

Compare stored procedures across multiple databases (SQL Server)

SQL Gurus -- Our architecture consists of multiple customer databases to a common codebase. When we deploy database changes, the scripts must be run agianst each database. Because of deployment issues, there have come times when our stored procedures became out of sync with one another. I would like to create a script to return these m...

Is there a solution to automatically synchronize Emacs org-mode with one of the web based todo services?

Org-mode is amazing. I like its power and simplicity. However, sometimes I need access to my tasks in places where I don't have the necessary setup. Is there a way to synchronize my org agenda with one of the better web based todo services like RTM, Toodledo or similar? It would be the best solution, because I'd run the sync process reg...

Synchronization in Vectors in Java

what is meant by vector in Java is thread safe and synchronized, how is it made thread safe. I'm looking at internal details of implementation ...

How to synchronize Juval Lowy's Publish/Subscribe framework?

I'm trying to employ the WCF Publish/Subscribe framework described in Lowy's book "Programming WCF Services". But in some cases it is needed to synchronize between events. For instance, if I have a client that is executing its business then it fires (publishes) an event and continues to execute until at one point it needs to block until...

Replication vs Sync Framework vs Service Broker

I've asked about each of these technologies separately, and really haven't found a suitable answer. We have a server in our central office running SQL Server 2005 Enterprise that has several large (large in the sense that DSL is the limiting factor) databases that we need local copies of at each of our locations. We currently have a fe...

(as3) Sync data between 3 or more identical flash objects on the same page

Ok, i have asked something similar before, but never go to the solution i need. So am starting a new stack to not confuse my issues, and to make a little clearer. What i need to do I have multiple flash objects on a html page, they are all identical, and all of them need to be sync'd with the correct time. In its current state, each on...

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

SQL Server 2008 Change Tracking

We want to use Change Tracking to implement a two-way sync between a SQL Server 2008 Enterprise/Standard instance, and an Express 2008 instance. When we read the remote changes, and then make the adjustments on the local server, how can we keep those statements from being change tracked? I foresee endless loops of one server tracking a...

synchronizedCollection and contains--do I need to synchronize manually?

I'm using Collections.synchronizedCollection in Java to protect a Set that I know is getting accessed concurrently by many threads. The Java API warns: " It is imperative that the user manually synchronize on the returned collection when iterating over it: Collection c = Collections.synchronizedCollection(myCollection); ... syn...

Alternative to spinlock

Hi, I am using the following spinlock approach: while(!hasPerformedAction()){ //wait for the user to perform the action //can add timer here too } setHasPerformedAction(false); return getActionPerfomed(); this basically waits for a user to perform an action and then returns it. Currently something requests an answer from th...

Android Process Synchronization

Are the processes in android asynchronous? If they are asynchronous then how can we conclude when the activity or process is finished or completed its execution. ...

Communicating with Microsoft Dynamics GP Database and Project DataBase

Hi there, I am coding in ASP.NET C#. I have Microsoft Dynamics GP hosted at a server and my database hosted at another server. I would like the GP database take value from some table there and synchronise it with my database. Which is the best alternative? Data transmission Service(DTS)? ...

C# and C++ Synchronize between processes

Hi guys, We have 2 applications. One written in C# and the other in C++. We need to maintain a counter (in memory) shared between these processes. Every time one of these applications start, it needs to check for this counter and increase it and every time the application shut-down it needs to decrease the counter. If the application has...

[object design]Plenty of timed events to synchronize. How to ? :-)

Hi folks ! I'm trying to design an application (in C++ but that doesn't matter I guess, anything object-oriented would work the same) which has to synchronize a bunch of events together. Basically, you would have a several data structure instances which would contain lists of events. An event would have a timestamp and be "runable". T...

Do we synchronize instance variables which are final? If yes then whats the use?

Hi, I like to know do we synchronize the instance variable which are final. As variables are final there can not be change in the value. Can anybody explain this? ...