synchronization Questions
4
I'm building a C# program for windows tablets that are synchronized with a database. They will each have their own local .MDF SQL Server database which they interact with using SQL Server Express.
...
Maurer asked 9/3, 2015 at 20:37
7
Solved
Let's assume there is a data structure like a std::vector and a global variable int syncToken initialized to zero.
Also given, exactly two threads as reader/writer, why is the following (pseudo) co...
Transcendental asked 30/11, 2015 at 11:40
8
Solved
I have a thread pool with some threads (e.g. as many as number of cores) that work on many objects, say thousands of objects. Normally I would give each object a mutex to protect access to its inte...
Augmentative asked 26/4, 2010 at 18:52
4
Solved
I want to develop application same as UBER in which I need to show available taxis in the selected region and update as the taxis are hired, available, unavailable. Kind of auto refresh.
Calling th...
Hornback asked 17/11, 2015 at 9:48
3
I have a few computers using the same database (SQL Server 2008)
I'm trying to synchronize a task between all these computers using the database.
Each task is represented by a guid that is the lo...
Collide asked 13/8, 2012 at 14:23
1
I am trying to make Event Syncing feature for a Project. I need to sync events with the remote server.
Let's say I Installed the App in Device A.
If I login to another device lets take B, then e...
Navarino asked 26/11, 2015 at 5:32
2
I am working on a REST API for a web service using Pyramid and Cornice; data on the server side is handled using SQLAlchemy and MySQL. The web server is nginx using uwsgi, and it's configured to ru...
Hygienic asked 26/11, 2015 at 9:24
7
Solved
It is really a pain keeping production and development databases in sync manually.
Is there any tool that allows one to keep the two databases in sync? Something like the amazing Laravel fra...
Obliging asked 8/12, 2012 at 6:33
2
Solved
I have a NodeJS server application. I have this line of code for my logging:
fs.writeFileSync(__dirname + "/../../logs/download.html.xml", doc.toString());
Sometimes it works correctly, but und...
Fennie asked 27/9, 2015 at 11:56
1
Solved
There is a bunch of files here: http://data.pudo.org/flexicadastre/
I want to have a local folder that contains the same files there are in that URL.
I've tried:
rsync -av http://data.pudo.org/...
Prober asked 17/11, 2015 at 11:45
3
Solved
In Java since Java 1.0 in class java.io.InputStream there are methods
public synchronized void mark(int readlimit) {}
and
public synchronized void reset() throws IOException {
throw new IOEx...
Utgardloki asked 4/11, 2015 at 15:39
2
Solved
I have an application where I have a shared resource (a Motion system) which can be accessed by multiple clients. I have individual Operations that require access to the system for the duration of ...
Screw asked 2/10, 2012 at 16:43
1
pt-table-sync and pt-table-checksum still require the target and destination DBs to be in the same network. Is there an alternative, apart from import/export, replication, and pt-table-sync?
MySQL...
Repurchase asked 10/3, 2015 at 9:47
1
Solved
Class Future
{
private volatile boolean ready;
private Object data;
public Object get()
{
if(!ready) return null;
return data;
}
public synchronized void setOnce(Object o)
{
if(ready) th...
Burse asked 11/11, 2015 at 0:0
3
I use Firebase to handle the Auth topic of my Android app.
I also save a user profile on Firebase, that contain user id and extra options that user can update in the android app.
At startup, the a...
Discommodity asked 21/10, 2015 at 13:19
1
Solved
I understand that the thread that waits on a conditional variable, atomically releases the lock and goes to sleep until is waken by a conditional signal from another thread (when a particular condi...
Morganite asked 30/10, 2015 at 8:50
3
Solved
I am trying to implement very simple Windows events in Linux. Only for my scenario - 3 threads, 1 main and 2 secondary. Each of secondary threads raise 1 event by SetEvent and main thread wait it. ...
Teresitateressa asked 23/10, 2012 at 12:27
1
All the methods of std::sync::atomic::AtomicBool take a memory ordering (Relaxed, Release, Acquire, AcqRel, and SeqCst), which I have not used before. Under what circumstances should these values b...
Ecru asked 22/5, 2015 at 23:8
1
Solved
While I was taking a look on the golang memory model document(link), I found a weird behavior on go lang. This document says that below code can happen that g prints 2 and then 0.
var a, b int
fu...
Lesseps asked 22/10, 2015 at 6:48
1
Solved
I have followed the loopback offline sync example and create my own model with embedded document.
I created a Model named Project where ProjectMembers are embedded model. Here are my model:
Project...
Criminality asked 11/10, 2015 at 12:34
3
Solved
I'm looking at some notify/wait examples and came across this one. I understand a synchronized block essentially defines a critical section, but doesn't this present a race condition? Nothing speci...
Atalaya asked 20/10, 2015 at 19:10
2
When calling MPI_BCAST, is there any implied synchronization? For example, if the sender process were to get to the MPI_BCAST before others could it do the BCAST and then continue without any ackno...
Sphygmomanometer asked 11/7, 2011 at 16:6
4
Solved
I am migrating an applciation from windows to linux. I am facing problem with respect to WaitForSingleObject and WaitForMultipleObjects interfaces.
In my application I spawn multiple threads where...
Recalcitrate asked 27/4, 2010 at 7:59
4
Solved
Does the synchronize keyword need to be applied to each method of a class that implements the singleton pattern like this?
public class Singleton {
private Singleton(){}
public synchronized st...
Cleanlimbed asked 10/4, 2013 at 15:51
2
Solved
I clicked with the rigth button of mouse in one project.
Then I clicked in the menu: Compare with --> Head Revision (using git)
Then I clicked in Remember my decision to always open team synchro...
Roundelay asked 13/10, 2015 at 13:58
© 2022 - 2024 — McMap. All rights reserved.