synchronization

Mutex on 1 byte shared resource

Is Mutex required on 1 byte shared resource? If not then why not? Consider I am using normal desktop PC pentium IV , 32 bit. Will condition change if use core 2 duo? ...

SQL Synchronization

I have done SQL synchronization. I am to execute the Query like Insert,Update,Delete and it is affecting /reflecting in another PC, but if I create a table it is not replicated in another PC. How do I create a Table that is reflected in another PC which I synchronized. SQLProduct:MsSql Server 2008 Please help ...

Synchronization primitive for shared usage counter?

Is there a Windows (or .NET) synchronization primitive that: can be shared across multiple processes on the same PC; represents a counter of how many threads are currently depending on a shared resource; is automatically decremented by the OS when a process abnormally terminates; and can be waited on by another process (and signaled wh...

How to enable synchronization of custom account in android?

I am writing my own SyncAdapter for android devices that should synchronize TV broadcast information to the device but ran into problem of not getting the Synchronize "mydata" checkbox visible under Data & Synchronization part of the account preferences. I have implemented my own SyncAdapter and defined it properly in the xml: Here is ...

Anything similar to Apple's sync services or Microsoft's sync framework?

I'm looking for anything that facilitates syncing local data with some server on the internet. It doesn't have to be as mature as those two and any platform is fine, I'm just looking at different approaches to the problem. ...

Philosophers Synchronization Algorithm

I was reading new materials ahead I came to know the term "Philosophers Synchronization Algorithm", but I could not understand it. Can anyone help me understand it what is it? Thanks ...

How to avoid 3 ajax calls?

I wrote some code that filters a province/state select field after you choose a country: var cache = {}; function updateProvinceOptions($select, values, initial) { for(i in values) { $select.append('<option value="'+values[i][0]+'">'+values[i][1]+'</option>'); } $select.va...

[Sync Service for File System] How to get the list of changed files/folders which are going to be synchronised?

Currently in my application, I want to temporary lock all the changed items (files/folders) which are to-be-synchronized ones. I notice the method DetectChanges() (of class Microsoft.Synchronization.Files.FileSyncProvider) but everything detected seem to be internal. Is there a way to get that list? Please help. ...

Syncronizing MS Access databse file

I am developing a database with about 10 tables in it. Basically it will be used in 2 or 3 distant geographical locations (let's call them A,B and C). The desired work flow will be as follows: A,B and C should always have the same database. So when A does any changes he should be able to send those changes over to B and C. Emailing the e...

How to sync two or more Mercurial servers?

I want to keep Mercurial servers at four different locations, and want them to be identical at any given time. Meaning, any change to any of them must be propagated to all other servers. How to do that? ...

A P2P CRM Proposal

At first, I found a P2P CRM on http://www.ajatus.info/. But it was discontinued for years. And it is not natural to have a local web server. And the worst thing is that is hard to integrate its data with other data source for it used CouchDb. So I draft a P2P CRM proposal and I am thinking to implement it. Features: Decentralization...

How to run a SyncBack profile with custom source and destination folders?

I am using SyncBackSE to synchronize folders between two locations. Since the full sync takes too long, I want to run the sync profile only for the specified source and destination folders via the command line. Any ideas how to do that? ...

OK to copy a CRITICAL_SECTION?

One can use a CRITICAL_SECTION variable to get mutual exclusion. My question is: does CRITICAL_SECTION support copying? If I pass one by value to another thread, can I know for sure that mutual exclusion will work? I wouldn't be surprised if the answer is "you cannot do that", but it'd be nice to have some sort of official confirmati...

Offline Dropbox & Sync Ideas

Is there any way to use Dropbox to sync selected local files? I like the idea of being able to switch some Dropbox folders to local. Because here, in Australia we still have data limits. The scenario is that I need to sync Dropbox files on my iMac with my Macbook with only selected files syncing online (for client access). Because I wor...

Interlocked.Increment of Reflected Value Type

I want to increment integer members of an object using Interlocked.Increment, but I want to reference those integers via reflection. Example code I have, which is not working, is below. public class StatBoard { #region States (count of) public int Active; public int Contacting; public int Polling; public int Conn...

creating a tag-based website and not using programing?

Hi. I want to create a tag-based website, and I need a tool that I could use (preferably without programing). It's a site where a user could pick tags on a certain item (tags are to be listed under a few categories). On the other end - a visitor could choose a tag, and then be redirected to a few items on which that tag was selected the...

Does Microsoft Support Multiple DFS Targets on the Same Machine

I'm experiencing issues deploying new code to my IIS wwwroot while the servers are active. The present configuration uses DFS to keep multiple servers in sync. Our current migration approach is: 3 web server wwwroots are shared across DFS so they remain in sync When migrating new code we keep IIS active and push it to web1 which is e...

Offline / Online Data Synchronization Design (Javascript)

Hi All, I'm currently in the process of writing an offline webapp using all the html5 goodies for offline support. However I'm starting now to think about writing the sync module that will ensure that any offline data gets sent to the server and server data back to the client. Now I'm sure this has been done before, I mean its a prett...

Problem synchronizing with ManualResetEvent

I have written a method that downloads some files, and now I'm trying to make it download up to 5 files in parallel, and for the rest to wait for the previous ones to finish. I am using a ManualResetEvent for this, but when i include the syncronisation part it doesn't download anything anymore (without it it works). Here is the code of ...

Shared memory and comunication between programs

I read this: http://stackoverflow.com/questions/1109870/python-singleton-into-multiprocessing but I didn't find the solution of my problem. I have to run the same program (not process) many times in one time. Programs work in the same electronic devices. I must synchronized this programs. Only one program can use device in the moment. ...