Questions tagged [synchronization]

Synchronization refers to using controls to maintain a coherent representation, either a group of processes running the same program (process synchronization), or representations of data (data synchronization).

In computer science, synchronization refers to one of two distinct but related concepts: synchronization of processes, and synchronization of data. Process synchronization refers to the idea that multiple processes are to join up or handshake at a certain point, so as to reach an agreement or commit to a certain sequence of action. Data synchronization refers to the idea of keeping multiple copies of a dataset in coherence with one another, or to maintain data integrity. Process synchronization primitives are commonly used to implement data synchronization.

-from Synchronization (computer science) - Wikipedia

12446 questions
4
votes
1 answer

FFmpeg Automatically Synchronize Audio and Video

I have two separate streams, audio (line-in, pulseaudio) and video (ip-camera, rtsp), which I would like to automatically synchronize. The best I came up with so far is ffmpeg with -itsoffset but the offset actually varies. Is there any way to do…
Suuuehgi
  • 4,547
  • 3
  • 27
  • 32
4
votes
5 answers

Using parallelism in Java makes program slower (four times slower!!!)

I'm writing conjugate-gradient method realization. I use Java multi threading for matrix back-substitution. Synchronization is made using CyclicBarrier, CountDownLatch. Why it takes so much time to synchronize threads? Are there other ways to do…
4
votes
2 answers

Can I use multiple BackgroundWorker's in a synchronous way in WPF?

In my WPF application - I have a Listview with a Gridview inside. A user is able to add files to this list. The gridview should allow me to have quite rich "rows", each row showing file name, extra application detail and most importantly a progress…
dan
  • 5,664
  • 8
  • 45
  • 59
4
votes
2 answers

Strategy to sync offline local data with REST API after resuming connection

I have a hybrid application that is available on android and through browsers. Both clients use the REST API and websockets. Data is stored in localStorage. I would like the mobile devices to be able to modify offline resources, and after connecting…
JanuszO
  • 1,140
  • 12
  • 25
4
votes
2 answers

Can you signal and wait atomically with C# thread synchronization?

I'm having some issues with thread synchronization in C#. I have a shared object which gets manipulated by two threads, I've made access to the object mutually exclusive using lock(), but I also want to block each thread depending on the state of…
hookeslaw
  • 155
  • 2
  • 8
4
votes
4 answers

Java wait() not Throwing InterruptedException

I have an object on thread A that is calling wait() while another object on thread B does some work then calls thread A's object's notify(). Thread A then performs some post-processing. My problem is pretty straightforward: synchronized(this) { …
4
votes
2 answers

Why TSync(Time Synchronization) is needed in Adaptive AUTOSAR?

I'm a rookie in Adaptive AUTOSAR. I can't imagine why Time Synchronization(Tysnc) is needed. System time of ECUs can be synchronized by PTP. Could you explain why Tsync is needed even though PTP synchronize time across a distributed system? Or I…
Sean
  • 51
  • 2
4
votes
1 answer

Do I need to transfer ownership *back* to the transfer queue on next transfer?

I'm planning on using one of the vulkan synchronization examples as reference for how to handle infrequently updated uniform buffers. Specifically I was looking at this one: vkBeginCommandBuffer(...); // Submission guarantees the host write being…
Krupip
  • 4,404
  • 2
  • 32
  • 54
4
votes
0 answers

Magento 1.9 - OroCRM update sync not working properly

After change customer details from magento 1.9 changes not reflect on OroCRM almost 2 days over still not changes not reflect on OroCRM. How to do auto sync in every changes at the same time.
zus
  • 194
  • 2
  • 16
4
votes
1 answer

Pubnub preventing detox syncing

Need some help with Detox. I’ve got a similar issue to https://github.com/wix/detox/issues/272

 We have a Pubnub publish-subscribe SDK included in our app. So, when running a detox test, it will always time out, because it will wait for the…
mckenzit
  • 53
  • 1
  • 6
4
votes
1 answer

How to keep grpc service definitions in sync between server and clients?

I am planning to use grpc to build my search API, but I am wondering how the grpc services definitions files (e.g .proto) is synced between the server and the clients (assuming all use different technologies). Also if the server had changed one of…
adnanmuttaleb
  • 3,388
  • 1
  • 29
  • 46
4
votes
2 answers

How do I sync Google Earth data with Google Maps?

I'm having severe trouble with Google "My Maps" (server won't save, polygon attributes changing sporadically, etc). So now I'm trying to work in Google Earth (saving files as I go) and sync with "My Maps" later. However, not only am I having…
humble_coder
  • 2,777
  • 7
  • 34
  • 46
4
votes
3 answers

Java concurrency : Do I have to synchronise a method that only retrieve state and does not modify it?

I'm learning java concurrency and used a Bank Account that is shared among multiple people example to try to practice principles of concurrency. This is my Account class. public class Account(){ private int balance = 0; public int…
enzio902
  • 457
  • 6
  • 14
4
votes
2 answers

Is the 'synchronized' keyword in a classic enterprise application suspicious?

I am talking about classic enterprise applications. Typically hosted in some kind of application-server or container. Nothing fancy, just entities, services, Presentation/UI and relational storage. Whenever I see the synchronized keyword (either on…
jbandi
  • 17,499
  • 9
  • 69
  • 81
4
votes
1 answer

If two unsynchronized threads increment a counter X times, can the total result be less than X?

I have two unsynchronized threads in a tight loop, incrementing a global variable X times (x=100000). The correct final value of the global should be 2*X, but since they are unsynchronized it will be less, empirically it is typically just a bit…
Gonen I
  • 5,576
  • 1
  • 29
  • 60