Gang Of Coders
Home
About Us
Contact Us
All Concurrency Solutions on Gang of Coders
Total of 231 Concurrency Solutions
What is the difference between concurrency and parallelism?
Language Agnostic
Concurrency
Parallel Processing
AWS lambda and Java concurrency
Java
Multithreading
Amazon Web-Services
Concurrency
Aws Lambda
When should we use Java's Thread over Executor?
Java
Multithreading
Concurrency
Executor
Atomic UPDATE .. SELECT in Postgres
Multithreading
Postgresql
Concurrency
Race Condition
Transaction Isolation
What are atomic operations for newbies?
Multithreading
Concurrency
Operating System
Synchronization
Atomic
Distributed Concurrency Control
Java
Concurrency
Load Balancing
Scaling
Terracotta
Is there any point in using a volatile long?
Java
Multithreading
Concurrency
Volatile
ThreadFactory usage in Java
Java
Multithreading
Concurrency
What are the advantages of using an ExecutorService?
Java
Multithreading
Concurrency
Executorservice
Instruction reordering & happens-before relationship
Java
Multithreading
Concurrency
Java Memory-Model
Wait until any of Future<T> is done
Java
Multithreading
Concurrency
Java Wait and Notify: IllegalMonitorStateException
Java
Multithreading
Concurrency
Is "Java Concurrency In Practice" still valid?
Java
Concurrency
Java 8
Java 7
What is the difference between a lock and a latch in the context of concurrent access to a database?
Database
Concurrency
Locking
What is the difference between synchronized on lockObject and using this as the lock?
Java
Concurrency
Locking
Synchronized
Synchronized Block
How to simulate DEADLOCK on SQL Server?
Sql
Sql Server
Concurrency
Deadlock
scala.concurrent.blocking - what does it actually do?
Scala
Concurrency
java.util.concurrent
Does ruby have real multithreading?
Ruby
Multithreading
Concurrency
What is a race condition?
Multithreading
Concurrency
Terminology
Race Condition
Why must wait() always be in synchronized block
Java
Multithreading
Concurrency
Wait
How can a threadpool be reused after shutdown
Java
Concurrency
How Threadpool re-use Threads and how it works
Java
Multithreading
Concurrency
Threadpool
CompletableFuture, supplyAsync() and thenApply()
Multithreading
Java 8
Concurrency
Completable Future
Futuretask
Can DateTime tear in a 64 bit environment?
C#
.Net
Datetime
Concurrency
Tearing
How do I know if this C# method is thread safe?
C#
Concurrency
Static Methods
Concurrency in a GIT repo on a network shared folder
Windows
Linux
Git
Concurrency
Network Share
How does ConcurrentHashMap work internally?
Java
Collections
Concurrency
Hashmap
What is the recommended way to wait till the Completable future threads finish
Java
Multithreading
Concurrency
Completable Future
How do I atomically increment a variable in Swift?
Swift
Concurrency
.NET Asynchronous stream read/write
C#
.Net
Asynchronous
Concurrency
Wrapping an asynchronous computation into a synchronous (blocking) computation
Java
Concurrency
Asynchronous
Blocking
Ensuring task execution order in ThreadPool
C#
Multithreading
Design Patterns
Concurrency
Threadpool
What does Thread Affinity mean?
Java
Multithreading
Concurrency
Terminology
Allowing the this reference to escape
Java
Concurrency
Volatile boolean vs AtomicBoolean
Java
Concurrency
Boolean
Volatile
Atomicboolean
How is Node.js inherently faster when it still relies on Threads internally?
Javascript
Architecture
Concurrency
node.js
How to implement simple threading with a fixed number of worker threads
Java
Multithreading
Concurrency
Is it safe to read an integer variable that's being concurrently modified without locking?
C++
Multithreading
Concurrency
ProcessPoolExecutor from concurrent.futures way slower than multiprocessing.Pool
Python
Concurrency
Multiprocessing
Future
concurrent.futures
Java 8 Unsafe: xxxFence() instructions
Java
Concurrency
Java 8
Unsafe
Memory Fences
ExecutorService.submit(Task) vs CompletableFuture.supplyAsync(Task, Executor)
Java
Concurrency
Future
Completable Future
Volatile vs Static in Java
Java
Multithreading
Concurrency
Static
Volatile
When do I need to use AtomicBoolean in Java?
Java
Concurrency
What is the difference between concurrency, parallelism and asynchronous methods?
Multithreading
Asynchronous
Concurrency
Is AsyncTask really conceptually flawed or am I just missing something?
Android
Concurrency
Handler
Android Asynctask
Practical uses for AtomicInteger
Java
Concurrency
Atomic
What is the Swift equivalent to Objective-C's "@synchronized"?
Concurrency
Mutex
Swift
What is a coroutine?
Concurrency
Language Agnostic
Terminology
Coroutine
Collection was modified; enumeration operation may not execute
C#
Wcf
Concurrency
Dictionary
Thread Safety
What's the difference between Thread start() and Runnable run()
Java
Multithreading
Concurrency
Runnable
What is the Haskell response to Node.js?
Multithreading
Haskell
Concurrency
node.js
When and how should I use a ThreadLocal variable?
Java
Multithreading
Concurrency
Thread Local
Thread Confinement
How does LMAX's disruptor pattern work?
Concurrency
Latency
Actor
Disruptor Pattern
Why does this Java program terminate despite that apparently it shouldn't (and didn't)?
Java
Concurrency
Java Memory-Model
Memory Visibility
Synchronization vs Lock
Java
Multithreading
Concurrency
Synchronization
java.util.concurrent
Why is creating a Thread said to be expensive?
Java
Multithreading
Performance
Concurrency
What is the most frequent concurrency issue you've encountered in Java?
Java
Multithreading
Concurrency
What is a mutex?
Multithreading
Concurrency
Mutex
Executors.newCachedThreadPool() versus Executors.newFixedThreadPool()
Java
Multithreading
Concurrency
Executorservice
Threadpoolexecutor
Is HttpClient safe to use concurrently?
.Net
C# 4.0
Concurrency
Dotnet Httpclient
How do synchronized static methods work in Java and can I use it for loading Hibernate entities?
Java
Multithreading
Hibernate
Concurrency
Synchronization
What is a deadlock?
Multithreading
Concurrency
Locking
Deadlock
Java concurrency: Countdown latch vs Cyclic barrier
Java
Concurrency
Countdownlatch
Cyclicbarrier
Is iterating ConcurrentHashMap values thread safe?
Java
Multithreading
Concurrency
Thread Safety
Concurrenthashmap
What is a database transaction?
Database
Concurrency
Transactions
Theory
Failover
What's the status of multicore programming in Haskell?
Haskell
Concurrency
Functional Programming
Multicore
Parallel Processing
Is it safe to get values from a java.util.HashMap from multiple threads (no modification)?
Java
Multithreading
Concurrency
Hashmap
Good example of livelock?
Concurrency
Livelock
How to asynchronously call a method in Java
Java
Concurrency
Asynchronous
Goroutine
When to use volatile with multi threading?
C++
Multithreading
Concurrency
Atomic
Volatile
Different types of thread-safe Sets in Java
Java
Concurrency
Set
Greenlet Vs. Threads
Python
Concurrency
Gevent
Coroutine
Greenlets
What's a monitor in Java?
Java
Multithreading
Concurrency
Monitor
Difference between DispatchQueue.main.async and DispatchQueue.main.sync
Ios
Swift
Multithreading
Swift3
Concurrency
Java volatile reference vs. AtomicReference
Java
Concurrency
Which concurrent Queue implementation should I use in Java?
Java
Multithreading
Concurrency
Queue
Are non-synchronised static methods thread safe if they don't modify static class variables?
Java
Multithreading
Concurrency
Static
Thread Safety
iPhone - Grand Central Dispatch main thread
Ios
Concurrency
Grand Central-Dispatch
Dispatch Async
How to use the CancellationToken property?
C#
Multithreading
Concurrency
Cancellation
Cancellation Token
.NET - Dictionary locking vs. ConcurrentDictionary
.Net
Concurrency
Dictionary
Concurrentdictionary
Is JavaScript guaranteed to be single-threaded?
Javascript
Concurrency
Why there is no ConcurrentHashSet against ConcurrentHashMap
Java
Collections
Concurrency
Hashmap
Hashset
Which parallel sorting algorithm has the best average case performance?
Algorithm
Sorting
Concurrency
How to limit the amount of concurrent async I/O operations?
C#
Asynchronous
Async Await
Concurrency
Task Parallel-Library
What is a memory fence?
Concurrency
Memory Fences
Impossible to make a cached thread pool with a size limit?
Java
Multithreading
Concurrency
Executorservice
Threadpoolexecutor
What's the difference between ConcurrentHashMap and Collections.synchronizedMap(Map)?
Java
Dictionary
Concurrency
Concurrent vs serial queues in GCD
Ios
Multithreading
Concurrency
Grand Central-Dispatch
AtomicInteger lazySet vs. set
Java
Concurrency
Atomic
Semaphore - What is the use of initial count?
C#
Multithreading
Concurrency
Semaphore
Is volatile expensive?
Java
Memory Management
Concurrency
Volatile
LinkedBlockingQueue vs ConcurrentLinkedQueue
Java
Multithreading
Data Structures
Concurrency
Queue
What is the difference between lock, mutex and semaphore?
Concurrency
Locking
Mutex
Semaphore
What is mutex and semaphore in Java ? What is the main difference?
Java
Multithreading
Concurrency
Mutex
Semaphore
Catching return values from goroutines
Go
Concurrency
Goroutine
Choosing the best concurrency list in Java
Java
Concurrency
Which would be better for concurrent tasks on node.js? Fibers? Web-workers? or Threads?
Multithreading
node.js
Concurrency
Web Worker
Fibers
Are "data races" and "race condition" actually the same thing in context of concurrent programming
Multithreading
Concurrency
Language Agnostic
Data Race
How to make ThreadPoolExecutor's submit() method block if it is saturated?
Java
Concurrency
Executor
Is there an ExecutorService that uses the current thread?
Java
Concurrency
What are the main uses of yield(), and how does it differ from join() and interrupt()?
Java
Multithreading
Concurrency
Yield
When would you call java's thread.run() instead of thread.start()?
Java
Multithreading
Concurrency
ExecutorService that interrupts tasks after a timeout
Java
Multithreading
Concurrency
Executorservice
CountDownLatch vs. Semaphore
Java
Multithreading
Concurrency
Semaphore
Countdownlatch
Multiple goroutines listening on one channel
Go
Concurrency
Goroutine
Why is i++ not atomic?
Java
Multithreading
Concurrency
How to use ConcurrentLinkedQueue?
Java
Concurrency
How do I call some blocking method with a timeout in Java?
Java
Concurrency
What exactly does runtime.Gosched do?
Concurrency
Go
Why there are no concurrency keywords in Kotlin?
Java
Concurrency
Kotlin
Confused about UPDLOCK, HOLDLOCK
Sql Server
Tsql
Sql Server-2008
Concurrency
Locking
Is there a way for multiple processes to share a listening socket?
Sockets
Concurrency
NSOperation vs Grand Central Dispatch
Ios
Concurrency
Grand Central-Dispatch
Nsoperation
Nsoperationqueue
What are the use cases of scala.concurrent.Promise?
Scala
Concurrency
Are static variables shared between threads?
Java
Multithreading
Concurrency
Static
Memory Visibility
how to know what is NOT thread-safe in ruby?
Ruby
Multithreading
Concurrency
Thread Safety
Ruby on-Rails-4
Synchronizing access to SimpleDateFormat
Java
Multithreading
Concurrency
Simpledateformat
Java: ExecutorService that blocks on submission after a certain queue size
Java
Concurrency
Threadpool
Executorservice
WAITING at sun.misc.Unsafe.park(Native Method)
Java
Multithreading
Concurrency
java.util.concurrent
How safe are Golang maps for concurrent Read/Write operations?
Go
Concurrency
Hashmap
Is a bool read/write atomic in C#
C#
.Net
Concurrency
Locking
Boolean
When is a ConcurrentSkipListSet useful?
Java
Data Structures
Collections
Concurrency
How/why do functional languages (specifically Erlang) scale well?
Concurrency
Functional Programming
Erlang
Scalability
How does Actors work compared to threads?
Multithreading
Concurrency
Actor
Message Passing
Concurrent Dictionary Correct Usage
C#
.Net
Multithreading
.Net 4.0
Concurrency
Custom thread pool in Java 8 parallel stream
Java
Concurrency
Parallel Processing
Java 8
Java Stream
How to interrupt a BlockingQueue which is blocking on take()?
Java
Concurrency
Blockingqueue
How to limit concurrency with Python asyncio?
Python
Python 3.x
Asynchronous
Concurrency
Python Asyncio
ConcurrentModificationException for ArrayList
Java
Collections
Concurrency
How to wait for several Futures?
Scala
Concurrency
Future
Understanding std::hardware_destructive_interference_size and std::hardware_constructive_interference_size
C++
Multithreading
Concurrency
C++17
Cpu Cache
Node.js or Erlang
Concurrency
Erlang
Multicore
node.js
How to remove all Items from ConcurrentBag?
C#
Concurrency
Write a program that will surely go into deadlock
Java
Concurrency
Deadlock
What is the purpose of the ConcurrencyStamp column in the AspNetUsers table in the new ASP.NET MVC 6 identity?
asp.net Mvc
Concurrency
Database Schema
Identity
asp.net Core-Mvc
Solving embarassingly parallel problems using Python multiprocessing
Python
Concurrency
Multiprocessing
Embarrassingly Parallel
When will ConcurrentDictionary TryRemove return false
C#
.Net
Concurrency
How to wait for all threads to finish, using ExecutorService?
Java
Multithreading
Concurrency
Parallel Processing
Executorservice
What is the meaning of the term "thread-safe"?
Multithreading
Language Agnostic
Programming Languages
Concurrency
Django: How can I protect against concurrent modification of database entries
Django
Django Models
Concurrency
Transactions
Atomic
When should I use a CompletionService over an ExecutorService?
Java
Multithreading
Concurrency
Completion Service
Pass multiple parameters to concurrent.futures.Executor.map?
Python
Concurrency
Iterator
Future
Map Function
Simplest and understandable example of volatile keyword in Java
Java
Multithreading
Concurrency
Volatile
Celery difference between concurrency, workers and autoscaling
Python
Concurrency
Celery
How do stackless coroutines differ from stackful coroutines?
C++
Concurrency
Coroutine
Boost Coroutine
Is there an advantage to use a Synchronized Method instead of a Synchronized Block?
Java
Multithreading
Concurrency
Locking
Synchronized
Java 8: Parallel FOR loop
Java
For Loop
Concurrency
java.util.concurrent
Concurrent Programming
How to properly create and run concurrent tasks using python's asyncio module?
Python
Concurrency
Task
Python 3.4
Python Asyncio
How to handle Task.Run Exception
C#
Multithreading
Exception
Concurrency
Task
Log output of multiprocessing.Process
Python
Logging
Concurrency
Multiprocessing
Coordinating parallel execution in node.js
Javascript
Concurrency
node.js
Parallel Processing
Fork Join
The actor model: Why is Erlang/OTP special? Could you use another language?
C++
Concurrency
Erlang
Actor
Message Passing
Circular lock-free buffer
C++
Algorithm
Multithreading
Concurrency
Lock Free
Any good implementation of Actors for C#?
C#
.Net
Concurrency
Actor
Java Concurrency: CAS vs Locking
Java
Concurrency
Locking
Compare and-Swap
What is a semaphore?
Multithreading
Concurrency
Semaphore
What is a cache hit and a cache miss? Why would context-switching cause cache miss?
Concurrency
Language Agnostic
Cpu
Cpu Architecture
Cpu Cache
Java's Fork/Join vs ExecutorService - when to use which?
Java
Multithreading
Concurrency
Executorservice
Fork Join
How does the singleton Bean serve the concurrent request?
Java
Multithreading
Spring
Concurrency
Multiprocessing
What is a good pattern for using a Global Mutex in C#?
C#
Concurrency
Mutex
Only inserting a row if it's not already there
Sql
Sql Server
Tsql
Concurrency
Locking
Different ways to pass channels as arguments in function
Concurrency
Go
Channel
What is the difference between linearizability and serializability?
Java
Concurrency
Concurrent JUnit testing
Java
Multithreading
Unit Testing
Concurrency
Junit
What is the difference between concurrent programming and parallel programming?
Language Agnostic
Parallel Processing
Concurrency
What is the Advantage of sync.WaitGroup over Channels?
Go
Concurrency
Channel
Should you check if the map containsKey before using ConcurrentMap's putIfAbsent
Java
Performance
Concurrency
Concurrenthashmap
What's the use of the SyncRoot pattern?
C#
Multithreading
Design Patterns
Concurrency
Java : Does wait() release lock from synchronized block
Java
Multithreading
Concurrency
Locking
Wait
NSURLSession concurrent requests with Alamofire
Swift
Concurrency
Nsurlsession
Alamofire
Nsurlsessionconfiguration
Active threads in ExecutorService
Java
Multithreading
Concurrency
Java ReentrantReadWriteLocks - how to safely acquire write lock when in a read lock?
Java
Concurrency
Reentrantreadwritelock
How are mutexes implemented?
Language Agnostic
Concurrency
Mutex
ThreadPoolExecutor Block When Queue Is Full?
Java
Multithreading
Concurrency
Executorservice
Executor
Concurrency: Atomic and volatile in C++11 memory model
C++
Multithreading
Concurrency
C++11
Parallel Processing
Condition vs wait notify mechanism
Java
Multithreading
Concurrency
Are channels passed by reference implicitly
Concurrency
Go
Channels
Pass by-Reference
Python: Wait on all of `concurrent.futures.ThreadPoolExecutor`'s futures
Python
Concurrency
Future
how to make an application thread safe?
C++
C
Multithreading
Concurrency
Thread Safety
When to prefer LinkedBlockingQueue over ArrayBlockingQueue?
Java
Multithreading
Concurrency
Blockingqueue
Why doesn't volatile in java 5+ ensure visibility from another thread?
Java
Multithreading
Concurrency
Volatile
Compiler Bug
How do goroutines work? (or: goroutines and OS threads relation)
Concurrency
Go
Goroutine
Forcing multiple threads to use multiple CPUs when they are available
Java
Concurrency
Multithreading
Multicore
How difficult is Haskell multi-threading?
Multithreading
Haskell
Concurrency
Multicore
multiprocessing.Pool: When to use apply, apply_async or map?
Python
Multithreading
Concurrency
Multiprocessing
Best way to implement global counters for highly concurrent applications?
Concurrency
Go
Why use a ReentrantLock if one can use synchronized(this)?
Java
Multithreading
Concurrency
Synchronize
Reentrantlock
Parallel Loops in C++
C++
C++11
For Loop
Concurrency
C++14
SET NOCOUNT ON usage
Sql
Sql Server
Tsql
ado.net
Concurrency
Scala Futures - built in timeout?
Scala
Concurrency
Programmatic deadlock detection in java
Java
Multithreading
Concurrency
Deadlock
Future investment: Erlang vs. Scala
Scala
Concurrency
Erlang
Does a Future timeout kill the Thread execution
Java
Concurrency
Executorservice
Future
To what level does MongoDB lock on writes? (or: what does it mean by "per connection"
Mongodb
Concurrency
Locking
What is the fastest way to send 100,000 HTTP requests in Python?
Python
Http
Concurrency
context.WithValue: how to add several key-value pairs
Go
Concurrency
Goroutine
Why doesn't more Java code use PipedInputStream / PipedOutputStream?
Java
Design Patterns
Concurrency
Pipe
Is F# really faster than Erlang at spawning and killing processes?
Concurrency
F#
Erlang
Actor
Return pre-UPDATE column values using SQL only
Sql
Postgresql
Concurrency
Sql Update
Subquery
How can I use threading in Python?
Python
Multithreading
Concurrency
Python Multithreading
What's the difference between the "global queue" and the "main queue" in GCD?
Iphone
Ios
Concurrency
Grand Central-Dispatch
Why does the use of an unbuffered channel in the same goroutine result in a deadlock?
Concurrency
Go
Channels
How to limit Jenkins concurrent multibranch pipeline builds?
Jenkins
Groovy
Concurrency
Jenkins Pipeline
What's the difference between a Future and a Promise?
Java
Concurrency
Future
Promise
Javascript semaphore / test-and-set / lock?
Javascript
Concurrency
Semaphore
High-performance Concurrent MultiMap Java/Scala
Java
Scala
Concurrency
Multimap
Java: is there no AtomicFloat or AtomicDouble?
Java
Concurrency
Atomic
Is there a concurrent List in Java's JDK?
Java
List
Concurrency
What is the correct usage of ConcurrentBag?
C#
Multithreading
Concurrency
How are you taking advantage of Multicore?
Concurrency
Scalability
Parallel Processing
Multicore
Pure-Ruby concurrent Hash
Ruby
Concurrency
Hash
Locking
Are there any concurrent containers in C++11?
C++
Visual Studio-2010
Concurrency
C++11
Blockingqueue
When should I use SynchronousQueue over LinkedBlockingQueue
Java
Concurrency
Blockingqueue
Why is there no implicit parallelism in Haskell?
Haskell
Concurrency
Parallel Processing
Compiler Optimization
How to make BackgroundWorker return an object
C#
Concurrency
Asynchronous
Backgroundworker
Worker Process
How does shared memory vs message passing handle large data structures?
Memory
Concurrency
Erlang
Parallel Processing
Go
Are LinkedBlockingQueue's insert and remove methods thread safe?
Java
Multithreading
Concurrency
Synchronization
Concurrent threads adding to ArrayList at same time - what happens?
Java
Concurrency
Synchronization
Arraylist
How can CopyOnWriteArrayList be thread-safe?
Java
Data Structures
Concurrency
Java Memory-Model
Processes, threads, green threads, protothreads, fibers, coroutines: what's the difference?
Multithreading
Concurrency
Process
Parallel Processing
Fiber
What is "Linearizability"?
Multithreading
Concurrency
Parallel Processing
Thread Safety
why do I need std::condition_variable?
C++
C++11
Concurrency
How do you query a pthread to see if it is still running?
C
Multithreading
Concurrency
Pthreads
Destructor
Haskell lightweight threads overhead and use on multicores
Multithreading
Haskell
Concurrency
Multicore
Lightweight Processes
Difference between BlockingQueue and TransferQueue
Java
Concurrency
Jsr166
Async/Await - is it *concurrent*?
C#
Asynchronous
Concurrency
Async Await
Continuations
TPL Dataflow, whats the functional difference between Post() and SendAsync()?
C#
Concurrency
Task Parallel-Library
Message Passing
Tpl Dataflow
What's the difference between the message passing and shared memory concurrency models?
Concurrency
Shared Memory
Message Passing
When is it preferable to use volatile boolean in Java rather than AtomicBoolean?
Java
Concurrency
Atomic
Volatile
Concurrency model: Erlang vs Clojure
Concurrency
Clojure
Erlang
threading.Condition vs threading.Event
Python
Multithreading
Concurrency
Condition Variable