synchronization Questions

3

I had to build ntp packages from the source and install all of them on some hosts. After the installation, ntpdate 1.us.pool.ntp.org works for the synchronization. However, when I tried to do ntpda...
Ensample asked 22/7, 2014 at 2:6

3

Solved

I was reading the implementation of Linux semaphores. Due to atomicity, signal and wait (up and down in the source code) use spin locks. Then I saw Linux disabled interrupt in spin_lock_irqsave and...
Anselme asked 10/5, 2016 at 18:49

1

Solved

I've been looking about multi threading tutorials and those specific about synchronization, but I haven't been able to implement something that I need. It's a showcase of a synchronization happenin...

2

Solved

I am trying to modify a python program to be able to communicate with a C++ program using shared memory. The main responsibility of the python program is to read some video frames from an input que...
Delay asked 5/3, 2018 at 4:57

2

I have an async http webs service using fastapi. I am running multiple instances of the same service on the server on a different port and I have an nginx server in front so I can utilise them all....

7

Solved

we have two threads accessing one list via a synchronized method. Can we a) rely on the run time to make sure that each of them will receive access to the method based on the order they tried to o...
Waiwaif asked 26/11, 2009 at 10:20

3

For a current OpenCL GPGPU project, I need to sort elements in an array according to some key with 64 possible values. I need the final array to have all elemens with the same key to be contiguous....
Stock asked 27/5, 2013 at 23:57

1

Solved

I have some heavy csv table that i would like to import in parallel with @sync @sync macros. Not very familiar to this, I tried this way : #import files @sync @async begin df1=CSV.File(libname*&qu...
Tradein asked 22/10, 2020 at 19:30

2

Solved

I use the MS Sync Framework to sync my SQL Server instance with a local SQL CE file to make it possible working offline with my Windows app. I use GUIDs as keys. On my table I have a unique index o...
Umbilication asked 17/10, 2020 at 10:33

6

Solved

I am learning Javascript. I am not used to asynchronous programming so having a hard time here. Here's my code: var x = 0; async function increment(x) { ++x; for (var i = 0; i < 999999999...

1

In the process of rewriting the deprecated persistentView in Akka, I have a read actor that needs to snapshot its state and the journal events offset is has read so far. To stop the view actor requ...
Asquith asked 27/7, 2017 at 14:7

5

I have a question about CUDA synchronizing. Particularly, I need some clarification about synchronizing in if statements. I mean, if I put a __syncthreads() under the scope of an if statement hit b...
Subjoin asked 20/9, 2012 at 19:27

9

Solved

I see that for using objects which are not thread safe we wrap the code with a lock like this: private static readonly Object obj = new Object(); lock (obj) { // thread unsafe code } So, what ha...
Illassorted asked 17/5, 2011 at 10:55

4

Solved

What does this java code mean? Will it gain lock on all objects of MyClass? synchronized(MyClass.class) { //is all objects of MyClass are thread-safe now ?? } And how the above code differs fro...
Amyloid asked 13/1, 2010 at 11:33

7

Solved

The following are methods I currently have in an Abstract DAO class. If there are concurrent calls, are they safe as they are or should synchronization be used? I know synchronization should be use...
Piccoloist asked 17/8, 2010 at 20:19

4

Solved

How can I increment an integer value outside the scope of a parallel.foreach loop? What's is the lightest way to synchronize access to objects outside parallel loops? var count = 0; Parallel.ForEa...
Ambassadress asked 6/3, 2010 at 23:15

5

Solved

I know that using the synchronize keyword before a method brings synchronization to that object. That is, 2 threads running the same instance of the object will be synchronized. However, since th...
Retrospect asked 22/1, 2010 at 20:25

3

Solved

I have two arrays, old and new, which hold objects at each position. How would I sync or find the delta (i.e. what is new, updated and deleted from the new array compared to the old array) var o =...
Combe asked 19/2, 2013 at 19:55

4

Solved

I know there are already similar questions and I gave them a look but I couldn't find an explicit univocal answer to my question. I was just investigating online about these functions and their rel...
Mendicant asked 12/5, 2015 at 9:14

3

Solved

I just updated the build.gradle compile SDK to 27 API. compileSdkVersion 27 buildToolsVersion '27.0.3' targetSdkVersion 27 but but once I hit sync button it throws error: resource style/TextAp...
Concentration asked 13/1, 2018 at 16:5

5

I am trying to replicate the result of WWDC talk on syncing core data with cloud kit automatically. I tried three approaches: Making a new master slave view app and following the steps at in wwd...
Joinville asked 6/7, 2019 at 12:14

3

Solved

What is it? And what does it do? I'm working on an enterprise that has a proxy, and it fails trying to connect to somewhere. Why does it needs internet connection? What ports does it use? EDIT: Th...
Ambition asked 26/4, 2017 at 14:13

4

Solved

I have two computers, a desktop and a laptop. Now I have set up my ENV to sync with the help of a dropbox link. Is there a way to sync my Sublime Text 3 settings between these two computers inclu...

7

Solved

Is there a way to implement a lock in Python for multithreading purposes whose acquire method can have an arbitrary timeout? The only working solutions I found so far use polling, which I find in...
Harris asked 5/12, 2011 at 22:12

2

I have been experimenting with Kotlin synchronization and I do not understand from the docs on how the locking mechanism works on thread synchronization over common resources and thus attempted to ...

© 2022 - 2024 — McMap. All rights reserved.