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

Returning from a signal handler and leaving signal masked

I've got a situation where a signal handler needs to, under certain conditions, return without unmasking itself, i.e. after returning the signal should remain blocked in the thread's signal mask. Jumping out of the signal handler with longjmp will…
R.. GitHub STOP HELPING ICE
  • 208,859
  • 35
  • 376
  • 711
4
votes
2 answers

Is there a pattern for synchronizing message queue communication to request/response manually?

Let's imagine I have a REST API with an endpoint /api/status. When this endpoint is accessed, the API sends a message to a message queue requesting the status of some other service. Then in reply, the service sends a message with its status to a…
Stoyan Dimov
  • 5,250
  • 2
  • 28
  • 44
4
votes
1 answer

Would this mutex implementation make sense in PostgreSQL?

I Need to implement synchronization between database sessions in PostgreSQL. In SQL Server, I would implement it by creating my own "locking" table. Create table MyLock(LockName VARCHAR(100) NOT NULL UNIQUE, LockOwner INT NULL) I do not use…
Eric Mamet
  • 2,681
  • 2
  • 13
  • 43
4
votes
2 answers

Bounded-Waiting Mutual Exclusion with Compare-and-Swap

I added comments to each line to the best of my understanding, but I still don't get why we set waiting[j] = false; at the end without running process j's critical section. In my opinion, waiting[j] = false; should be replaced with i = j; so when it…
NoName
  • 9,824
  • 5
  • 32
  • 52
4
votes
2 answers

Is there a good way having two SQL Server Databases on Different machines synched daily?

What i would like to achieve is have two different SQL Server Databases, on two different servers running the same SQL Server Version( SQL Server 2008 R2 RTM - 10.50.1600.1 ) to be synched daily. Synched meaning just transferring the new data ( or…
4
votes
2 answers

Unable to resolve dependency for '...': Could not resolve project :react-native-navigation

Issue Description After carefully following the instructions in https://wix.github.io/react-native-navigation/#/docs/Installing, I am getting these errors after completing step 4 for Android: ERROR: Unable to resolve dependency for…
4
votes
1 answer

Lock and unlock a semaphore from different threads in Cocoa

I need to use some kind of semaphore to protect the access to a mutex zone, but I need this zone to span multiple threads. This is what I found in the documentation: Warning: The NSLock class uses POSIX threads to implement its locking …
Luca Carlon
  • 9,546
  • 13
  • 59
  • 91
4
votes
1 answer

WebRTC - how to synchronize media streams

I'm using WebRTC in a sort of non-conventional way. I have multiple streams generated by several 'broadcasting' peers being sent to a collection of several 'receiving' peer. I intend to use an SFU media server (maybe Jitsi or Kurento) It is very…
Alex Kyriazis
  • 311
  • 1
  • 4
  • 11
4
votes
6 answers

Can multiple CPUs simultaneously write to the same RAM location?

Are machine word size (or smaller) writes serialized? Only one native opcode is needed to copy register content to RAM.
Jacek Ławrynowicz
  • 2,670
  • 2
  • 23
  • 23
4
votes
1 answer

Singly-linked list insertion synchronization

Suppose I have a sorted, singly-linked list of N integers containing no duplicates, and k threads (where k << N), each trying to insert some integer (larger than the head node) into the list. Is it possible to synchronize insertions into such a…
ManRow
  • 1,563
  • 4
  • 21
  • 40
4
votes
1 answer

IOBluetooth Synchronous Reads

Right now I'm working on a program using IOBluetooth and I need to have synchronous reads, i.e. I call a method, it writes a given number of bytes to the port, then reads a given number and returns them. I currently have a complex system of…
jstm88
  • 3,335
  • 4
  • 38
  • 55
4
votes
2 answers

Does MNesia support synchronization after disconnected operation?

I'm starting to architect a project with the following requirements: The overall system will be distributed across multiple physical nodes on a WAN Each node will be using and manipulating a common set of data records Operations on these records…
G__
  • 7,003
  • 5
  • 36
  • 54
4
votes
1 answer

Synchronisation between two groups of operations

There's a lock that provides exclusive access to a section or resource for everyone. And there's ReaderWriterLock(Slim) that provides shared access to all readers and exclusive access to each writer. What I'm looking for is a synchronisation method…
ygoe
  • 18,655
  • 23
  • 113
  • 210
4
votes
2 answers

How to write vue .sync in javascript using createElement render function

I am changing my code from the template file to the render function. Now I have this HTML: :open.sync="state" But I don't know how to translate this to JavaScript. How to write this to the createElement function?
Jeroen
  • 432
  • 1
  • 9
  • 20
4
votes
1 answer

iOS Multiple AVPlayer objects results in loss of audio/video sync

I've been trying to use two different AVQueuePlayer objects within my app. The first player plays a series of short video clips streamed over the net. The second object plays only one video, but it is much longer in length. It is also streamed. I…
Ray
  • 91
  • 1
  • 6
1 2 3
99
100