Top "Synchronization" questions

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).

How does lock work exactly?

I see that for using objects which are not thread safe we wrap the code with a lock like this: …

c# .net synchronization locking thread-safety
How to sync with a remote Git repository?

I forked a project on github, made some changes, so far so good. In the meantime, the repository I forked …

git synchronization github
Mutex example / tutorial?

I'm new to multithreading, and was trying to understand how mutexes work. Did a lot of Googling but it still …

c++ c multithreading synchronization mutex
Wait until flag=true

I have javascript function like this: function myFunction(number) { var x=number; ... ... more initializations //here need to wait until flag==…

javascript synchronization
How do synchronized static methods work in Java and can I use it for loading Hibernate entities?

If I have a util class with static methods that will call Hibernate functions to accomplish basic data access. I …

java multithreading hibernate concurrency synchronization
Synchronous request in Node.js

If I need to call 3 http API in sequential order, what would be a better alternative to the following code: …

node.js synchronization
C# version of java's synchronized keyword?

Does c# have its own version of the java "synchronized" keyword? I.e. in java it can be specified either …

c# java multithreading synchronization
How does @synchronized lock/unlock in Objective-C?

Does @synchronized not use "lock" and "unlock" to achieve mutual exclusion? How does it do lock/unlock then? The output …

objective-c synchronization
How to use the CancellationToken property?

Compared to the preceding code for class RulyCanceler, I wanted to run code using CancellationTokenSource. How do I use it …

c# multithreading asynchronous concurrency synchronization
How do I make my ArrayList Thread-Safe? Another approach to problem in Java?

I have an ArrayList that I want to use to hold RaceCar objects that extend the Thread class as soon …

java multithreading collections synchronization arraylist