synchronization Questions
4
Solved
GOAL: What I'm after is to get data from database and refresh main.php (more evident through draw_polygon) every time something is added in database (after $.ajax to submit_to_db.php).
So basically...
Morganica asked 22/10, 2012 at 10:44
3
Solved
I'm trying to distribute an array across threads and have the threads sum up portions of the array in parallel. I want thread 0 to sum elements 0 1 2 and Thread 1 sum elements 3 4 5. Thread 2 to su...
Shashaban asked 19/2, 2015 at 5:39
1
Solved
Going over this sample semaphore implementations (for SMP systems), I understand the test-and-set is required for multiprocessor atomic checks. However, once we add the atomic checks aren't the dis...
Strader asked 19/12, 2014 at 6:55
1
I have a network of desktop PCs (Windows 7) which are located geographically apart from each other (connected with LAN).
The network has an Oracle back-end.
I want to install a database locally o...
Ka asked 8/2, 2015 at 19:4
2
We have an REST-based application built on the Restlet framework which supports CRUD operations. It uses a local-file to store the data.
Now the requirement is to deploy this application on multi...
Dunker asked 8/9, 2011 at 3:54
8
Solved
We have found that we have several spots in our code where concurrent reads of data protected by a mutex are rather common, while writes are rare. Our measurements seem to say that using a simple m...
Marienthal asked 9/1, 2015 at 12:33
6
Solved
"Java Concurrency in Practice" gives the following example of an unsafe class which due the nature of the java memory model may end up running forever or print 0.
The issue this class is trying t...
Lyndseylyndsie asked 22/1, 2012 at 13:0
2
Solved
I am trying to understand the difference between the two following code blocks
AtomicBoolean ab = new AtomicBoolean(false);
using the following to get and set state. .
ab.get();
ab.set(X);
vs. ...
Evening asked 26/1, 2015 at 17:18
5
I need create an application that validates NTP time synchronization on each machine. In other words, I need to determine if each machine is my LAN is synched to a common time server (stratum). So,...
Acrobat asked 5/4, 2012 at 20:23
1
Solved
Very new to queues so be gentle. To my understanding, $job->release() is supposed to put the job back on the queue. I currently have the code below but it only runs the job through the queue onc...
Darcee asked 20/1, 2015 at 17:24
2
Solved
Is there a way to synch multiple files at specific revisions quickly.
For example specify a list of files and revisions as follows:
foo#1
bar#4
baz#3
I could sync these in a foreach loop in he sh...
Pompon asked 14/1, 2015 at 9:58
2
Solved
My code
void build(std::vector<RKD <DivisionSpace> >& roots, ...) {
try {
// using a local lock_guard to lock mtx guarantees unlocking on destruction / exception:
std::lock_guar...
Innate asked 11/1, 2015 at 13:30
7
Solved
In my program i have two methods:
public void methodA() { //gets called very often
//write something to file
}
public void methodB() {
//write something to file
}
methodA gets called by the c...
Beaufert asked 8/1, 2015 at 9:2
4
Solved
I'm trying to use a shared string variable between my Python processes, but it seems that I'm doing something wrong since I'm getting coredumps and invalid memory values.
I use multiprocessing.Val...
Prehensible asked 22/5, 2014 at 20:11
5
Solved
I'm not sure if this is the correct way to synchronize my ArrayList.
I have an ArrayList in_queue which is passed in from the registerInQueue function.
ArrayList<Record> in_queue = null;
p...
Fetich asked 16/9, 2009 at 8:27
2
Solved
We are running a 3-member MongoDB replica set in production environment.
We would need to maintain a clone of that replset, which is called "mirror," to do internal analytics. This mirror does not...
Exemplum asked 17/12, 2014 at 9:42
5
Solved
I'm currently learning node.js and I see 2 examples for sync and async program (same one).
I do understand the concept of a callback, but i'm trying to understand the benefit for the second (async)...
Disunity asked 26/12, 2014 at 15:51
0
During migration from Android Studio 0.9 to 1.0, I had to change the clause
buildTypes {
release {
- runProguard true
+ minifyEnabled true
}
as recommended here.
My app is running a standard S...
Diva asked 22/12, 2014 at 15:34
1
Solved
We want to integrate Google Tasks API into our Grails Web Application but I have a number of concerns with regard to the syncing of tasks and prevention of conflicting data.
What is best practice...
Arboreous asked 11/12, 2014 at 12:21
4
Solved
I'm writing a little script that makes individual AJAX calls through a loop and I came across a, most likely obvious, problem. It seems that the loop is going to fast to handle the data that is rec...
Izak asked 5/6, 2011 at 17:24
1
Solved
I wonder why we need to run the wg.Wait() in goroutine
// This one works as expected...
func main() {
var wg sync.WaitGroup
for i:=0; i<5; i++ {
wg.Add(1)
go func() {
defer wg.Done()
}()
...
Stabler asked 4/12, 2014 at 7:24
2
Solved
The failure of Dekker-style synchronization is typically explained with reordering of instructions. I.e., if we write
atomic_int X;
atomic_int Y;
int r1, r2;
static void t1() {
X.store(1, std::m...
Lukelukens asked 2/12, 2014 at 11:57
4
Solved
A very noob question.
Is it also good to use git for my whole project (as kind of synchronization between different storages, version control is not the main point), including images, pdfs, ...
Calliecalligraphy asked 3/12, 2014 at 9:51
2
Solved
What do you use for data synchronization?
I have been working with Microsoft Sync Framework for a couple months now and I'm not sure if I like it. The concept is great but I've had trouble with re...
Abductor asked 29/7, 2009 at 12:40
3
I'm looking for implementations of set reconciliation algorithm. The problem is following: there are two sets with elements identified by some relatively compact value (e.g. UUID or MD5/SHA1/whatev...
Sonnysonobuoy asked 21/9, 2009 at 21:43
© 2022 - 2024 — McMap. All rights reserved.