synchronization Questions

1

Solved

From NET 4 I can use the ManualResetEventSlim class that make a little spinning before blocking in order to get a time optimization if the blocking time is little (I have no context switch). I'd li...
Keratitis asked 12/3, 2022 at 0:30

4

Solved

I've been examining several DLM's but most of them are written in JAVA or C++. Can't seem to find any service specifically implemented for .NET. Any idea or recommendations for distributed synchron...
Behring asked 20/12, 2010 at 12:1

0

The setup: My app uses either private data, i.e. data of a user identified by the iCloud login, or shared data, i.e. data of another user, shared via iCloud. It uses thus 2 persistent stores, priva...
Crackleware asked 17/2, 2022 at 17:54

5

Solved

I'm attempting to improve performance on a suite that tests against ElasticSearch. The tests take a long time because Elasticsearch does not update it's indexes immediately after updating. For in...
Centripetal asked 18/11, 2016 at 11:45

1

Consider the following scenario: you have a SSO service (let's say Keycloak), and X applications, that have their own databases, where somewhere in each database, you're referencing a user_id. How ...
Urissa asked 9/2, 2022 at 10:53

5

Solved

Dynamo-like databases (e.g. Cassandra) can enforce consistency by means of quorum, i.e. a number of synchronously written replicas (W) and a number of replicas to read (R) should be chosen in such ...

3

Solved

I know that when you synchronize a block of code, you specify which object's lock you want to use as the lock, so you could, for example, use some third-party object as the lock for this piec...
Hamill asked 26/4, 2015 at 10:45

5

Solved

I was reading Critical Section Problem from Operating System Concepts by Peter B. Galvin. According to it 1) Progress is : If no process is executing in its critical section and some processes wi...

4

Solved

I'm designing a base class that, when inherited, will provide business functionality against a context in a multithreaded environment. Each instance may have long-running initialization operations,...
Dour asked 25/9, 2013 at 23:2

4

Solved

I have my own ContentProvider and SyncAdapter which both work fine. I set them to be automatically synced with ContentResolver.setSyncAutomatically() an this work. I can also test the sync with De...
Nth asked 22/11, 2011 at 13:17

5

Solved

If I am using EventWaitHandle (or AutoResetEvent, ManualResetEvent) to synchronise between threads then do I need to call the Close() or Dispose() methods on that event handle when I am done with i...
Mcloughlin asked 18/3, 2009 at 19:49

8

Solved

i have created synchronized arrayList like this import java.text.SimpleDateFormat; import java.util.*; class HelloThread { int i=1; List arrayList; public void go() { arrayList=Collection...
Macrogamete asked 28/9, 2010 at 15:24

4

Solved

I'm a pretty active command line user and I have shell accounts all over the place. MacBooks, Linux desktop machines, Linux servers, Cygwin on XP, you name it. How can I keep my shell configuratio...
Harsh asked 20/10, 2008 at 12:30

2

I would like to synchronize two folders with each other. It should go two ways, always keeping the folders up to date (I use a regular cronjob). However, first I do not get the two way file transfe...
Middleoftheroad asked 9/3, 2011 at 12:43

1

Solved

I developed a C# based Windows Service which runs all of its logic in several different tasks. To allow the service to shutdown gracefully when it is being stopped, I am using a CancellationToken w...

10

Solved

UPDATE: Solution right after question. Question: Usually, synchronization is serializing parallel requests within a JVM, e.g. private static final Object LOCK = new Object(); public void doSomethi...
Dinka asked 21/3, 2012 at 9:55

3

Solved

Say you have this code: private String cachedToken; private final Object lockObject = new Object(); .... retrieveToken(){ synchronized(lockObject){ if (cachedToken == null){ cachedToken = go...
Balling asked 20/5, 2013 at 15:45

3

I am just curious to know how functions related to synchronization between threads are implemented inside Unix. For example, what happens when I call pthread_mutex_lock? Are there any pointers in u...
Dreeda asked 23/2, 2011 at 19:6

2

Let’s say I use a WaitGroup to make the main thread of an application wait until all the goroutines I have launched from said main have completed. Is there a safe, straightforward, way to assess at...
Amazonas asked 31/8, 2021 at 8:15

2

Solved

User model: public function positions() { return $this->belongsToMany('App\Position')->withPivot('company_id')->withTimestamps(); } Positions model: public function users() { return...
Lector asked 13/5, 2015 at 17:51

14

Solved

I need in node.js function result = execSync('node -v'); that will synchronously execute the given command line and return all stdout'ed by that command text. ps. Sync is wrong. I know. Just ...
Catarinacatarrh asked 14/12, 2010 at 19:59

4

Ok I've been researching this issue for a few days now so let me go over what I know so far which leads me to believe this might be an issue with NVidia's driver and not my code. Basically my game...
Hime asked 30/4, 2016 at 19:51

6

Solved

This is a general Java question and not an Android one first off! I'd like to know how to run code on the main thread, from the context of a secondary thread. For example: new Thread(new Runnable...
Franciscofranciska asked 28/4, 2013 at 22:28

6

Solved

Is there a read/write locking mechanism that works across processes (similar to Mutex, but read/write instead exclusive locking)? I would like to allow concurrent read access, but exclusive write a...

8

Solved

I have a website with PHP files and other. I would like to do one-click synchronisation between my local copy of a website and my website on the server. It would be nice if there was be a command l...
Kevel asked 28/3, 2009 at 18:27

© 2022 - 2024 — McMap. All rights reserved.