synchronization Questions

1

I am currently trying to find the best (*) way to have two threads running alternatively and make them wait on each other. (*) best combination of being quick while having low CPU cost I found th...
Melodie asked 14/11, 2014 at 17:56

2

Solved

What is the difference between above two? This question came to my mind because I found that Monitors and locks provide mutual exclusion Semaphores and conditional variables provide synchroniz...
Lycanthrope asked 11/4, 2012 at 6:24

6

Solved

I'm trying to help a wonderful designer who is sadly running out of space on her Dropbox, but is already paying for hosting service that has 100GB available for her. Is there a software that works ...
Jud asked 1/3, 2011 at 7:51

2

Solved

I'm working on a project containing web app and mobile app which records daily user's data. User are able to delete, update their data and they can use many devices to insert data. I intend t...
Conceptacle asked 3/11, 2014 at 1:24

1

With all the buzz around Offline First applications, one of the firsts things that comes up is the data synchronization between the client and the server. There are several posts and questions abo...
Depend asked 6/10, 2014 at 22:57

1

as you know, lsyncd can watching local file changes and trigger rsync to sync files chanages to remote server. my question is how to configure the interval of lsyncd monitoring files changes? I hav...
Flute asked 16/7, 2014 at 14:5

2

Solved

In my Android project I use a custom SyncAdapter which downloads data and stores it in local SQLite database. public class CustomSyncAdapter extends AbstractThreadedSyncAdapter { public CustomSy...

3

Solved

The sync man page says: sync() causes all buffered modifications to file metadata and data to be written to the underlying file systems. Does Python have a call to do this? P.S. Not fsync, I...
Bonheur asked 13/4, 2013 at 1:41

1

Solved

I am trying to check out a Perforce repository as of a certain date. The server is version 2010.1. According to the documents, I should be able to do something like this: p4 sync @2001/06/24 H...
Pelvis asked 10/10, 2014 at 18:50

2

Solved

The class BrokenLinkTest in the code below does the following. takes a web page url finds all the links in the web page get the headers of the links concurrently (this is done to check if the lin...
Hage asked 7/10, 2014 at 10:50

1

I'm developing an open source .NET assembly (WinSCP .NET assembly) that spawns a native (C++) application and communicates with it via events and file mapping objects. The assembly spawns the appli...
Decoction asked 24/9, 2014 at 14:13

4

Solved

The Windows NT operating system has the EnterCriticalSection and ExitCriticalSection objects to allow for synchronization between threads. What is the Linux equivalent, while using the GCC compiler...
Wheat asked 18/8, 2010 at 2:23

2

Here's the Test and Set written in software: boolean TestAndSet(boolean *target) { boolean rv = *target; *target = TRUE; return rv; } and do { while(TestAndSetLock(&lock)) ; // do noth...
Hendrik asked 4/8, 2014 at 11:8

7

Solved

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 wo...
Beverleybeverlie asked 27/9, 2008 at 6:34

3

Solved

According to MSDN, Monitor.Wait(): Releases the lock on an object and blocks the current thread until it reacquires the lock. However, everything I have read about Wait() and Pulse() seems to...
Macnamara asked 24/2, 2012 at 11:23

8

Solved

I have been working on a method to sync core data stored in an iPhone application between multiple devices, such as an iPad or a Mac. There are not many (if any at all) sync frameworks for us...
Stingaree asked 17/2, 2011 at 21:52

3

Solved

Suppose I have an array defined as follows: volatile char v[2]; And I have two threads (denoted by A, B respectively) manipulating array v. If I ensure that A, B use different indices at any tim...
Zingale asked 6/9, 2014 at 5:16

3

Solved

Is there a way to make python locks queued? I have been assuming thus far in my code that threading.lock operates on a queue. It looks like it just gives the lock to a random locker. This is bad fo...
Appraise asked 30/10, 2013 at 16:30

7

Solved

I have a Java program that executes from Spring Qquartz every 20 seconds. Sometimes it takes just few seconds to execute, but as data gets bigger I'm sure it run for 20 seconds or more. How can I ...
Hildahildagard asked 28/10, 2009 at 11:0

0

I'm using ReentrantLock with its recommended practise (lock, then actual code in try-block, then unlock in finally, see code example below). Sometimes (very very rare) I'm having java.lang.IllegalM...
Ashy asked 25/8, 2014 at 8:48

1

I'm using android KitKat and this seems to be not working as expected. I have an AnimatiorSet which should start after some delay but I want to make some action when the animation actually starts (...
Singband asked 15/4, 2014 at 12:30

4

Solved

I have to synchronize N client processes with one server. These processes are forked by a main function in which I declared 3 semaphores. I decided to use POSIX semaphores but I don't know how to s...
Brandish asked 2/12, 2011 at 16:19

1

Solved

In my code I have a loop that waits for some state to be changed from a different thread. The other thread works, but my loop never sees the changed value. It waits forever. However, when I put a S...
Fardel asked 21/8, 2014 at 11:25

7

We have two offline systems that normally can not communicate with each other. Both systems maintain the same ordered list of items. Only rarely will they be able to communicate with each other to ...
Margheritamargi asked 12/4, 2012 at 19:58

3

Solved

I'm trying to make sure I understand the performance implications of synchronized in java. I have a couple of simple classes: public class ClassOne { private ClassTwo classTwo = new ClassTwo(); ...
Minstrelsy asked 29/7, 2014 at 17:33

© 2022 - 2024 — McMap. All rights reserved.