Gang Of Coders
Home
About Us
Contact Us
All Multithreading Solutions on Gang of Coders
Total of 807 Multithreading Solutions
Difference between wait() and sleep()
Java
Multithreading
Sleep
Java Threads
AWS lambda and Java concurrency
Java
Multithreading
Amazon Web-Services
Concurrency
Aws Lambda
Using Boost.Lockfree queue is slower than using mutexes
C++
Multithreading
Performance
Boost
Lock Free
How do I start threads in plain C?
C
Multithreading
C# equivalent to java's wait and notify?
C#
Java
Multithreading
When should we use Java's Thread over Executor?
Java
Multithreading
Concurrency
Executor
What is a "thread" (really)?
Multithreading
Process
Definition
Alternatives to Thread.Sleep()
C#
Multithreading
How to allocate thread local storage?
C++
Linux
Multithreading
New Operator
Thread Local-Storage
Is a non-blocking, single-threaded, asynchronous web server (like Node.js) possible in .NET?
C#
Multithreading
Events
node.js
Asynchronous
What's the difference between performSelectorOnMainThread: and dispatch_async() on main queue?
Objective C
Ios
Multithreading
Uikit
Grand Central-Dispatch
Is it safe to use a static java.sql.Connection instance in a multithreaded system?
Java
Multithreading
Servlets
Jdbc
Connection
Android BroadcastReceiver or simple callback method?
Android
Multithreading
Callback
Broadcastreceiver
Atomic UPDATE .. SELECT in Postgres
Multithreading
Postgresql
Concurrency
Race Condition
Transaction Isolation
Multithreading and multicore differences
C++
Multithreading
Multicore
Private constructor to avoid race condition
Java
Multithreading
Race Condition
How to cancel Future in Scala?
Multithreading
Scala
Future
Java Multithreading concept and join() method
Java
Multithreading
Synchronized
Pthread Join
How is Javascript single threaded?
Javascript
Multithreading
How to pause / sleep thread or process in Android?
Android
Process
Multithreading
Why doesn't JavaScript support multithreading?
Javascript
Multithreading
Browser
What resources are shared between threads?
Multithreading
Process
Operating System
How do you kill Futures once they have started?
Python
Multithreading
concurrent.futures
What are atomic operations for newbies?
Multithreading
Concurrency
Operating System
Synchronization
Atomic
Synchronizing on String objects in Java
Java
Multithreading
Synchronization
Thread Safety
Synchronized
Is EndInvoke() optional, sort-of optional, or definitely not optional?
C#
Multithreading
Delegates
Why should I use a thread vs. using a process?
Multithreading
Process
Are C# arrays thread safe?
C#
Multithreading
Arrays
Thread Safety
How to use SQLite in a multi-threaded application?
C++
Multithreading
Sqlite
How do SMP cores, processes, and threads work together exactly?
Multithreading
Operating System
Multiprocessing
Multicore
Cpu Architecture
Is there any point in using a volatile long?
Java
Multithreading
Concurrency
Volatile
ThreadFactory usage in Java
Java
Multithreading
Concurrency
Dispatcher BeginInvoke Syntax
C#
.Net
Multithreading
Wcf Data-Services
What are the advantages of using an ExecutorService?
Java
Multithreading
Concurrency
Executorservice
ThreadStart with parameters
C#
Multithreading
Do Java sockets support full duplex?
Java
Multithreading
Sockets
SwingUtilities.invokeLater
Java
Multithreading
Swing
Awt
Event Dispatch-Thread
What if a timer can not finish all its works before the new cycle time arrives?
C#
Multithreading
Timer
Green-threads and thread in Python
Python
Multithreading
Pthreads
Gil
Green Threads
Instruction reordering & happens-before relationship
Java
Multithreading
Concurrency
Java Memory-Model
What's the best way to lock multiple std::mutex'es?
C++
Multithreading
C++11
Java - creating a new thread
Java
Multithreading
Java thread leaks when calling back from native thread via JNI
Java
C++
Multithreading
Callback
Java Native-Interface
Why does the main thread's output come first in C#?
C#
Multithreading
Wait until any of Future<T> is done
Java
Multithreading
Concurrency
Why are wait() and notify() declared in Java's Object class?
Java
Multithreading
Wait
Notify
What are the "things to know" when diving into multi-threaded programming in C++
C++
Multithreading
How to pass parameters to ThreadStart method in Thread?
C#
.Net
Multithreading
How do I get a thread safe print in Python 2.6?
Python
Multithreading
Updating GUI (WPF) using a different thread
C#
Multithreading
User Interface
Sharing
Java Wait and Notify: IllegalMonitorStateException
Java
Multithreading
Concurrency
How are Threads allocated to handle Servlet request?
Java
Multithreading
Jakarta Ee
Servlets
Threadpool
C++: Simple return value from std::thread?
C++
Multithreading
High CPU Utilization in java application - why?
Java
Multithreading
Performance
Web Applications
Cpu Usage
How to properly stop the Thread in Java?
Java
Multithreading
Listener
How to make a function wait until a callback has been called using node.js
Javascript
Multithreading
Callback
node.js
ReentrantReadWriteLock: what's the difference between ReadLock and WriteLock?
Java
Multithreading
Locking
Deadlock
Reentrantreadwritelock
how multiple threads invoke singleton object's method and work on them?
Java
Multithreading
Waiting for multiple futures?
C++
Multithreading
C++11
What is process and thread?
C++
Multithreading
Process
Operating System
Workaround for the WaitHandle.WaitAll 64 handle limit?
C#
Multithreading
Waithandle
Update UI from Thread in Android
Android
Multithreading
User Interface
C: How do you declare a recursive mutex with POSIX threads?
C
Multithreading
Pthreads
Mutex
Recursive Mutex
Cannot convert lambda expression to type 'System.Delegate'
C#
Multithreading
Dispatcher
Does Parallel.ForEach Block?
C#
.Net
Multithreading
Logging
Parallel Processing
C# Thread won't sleep?
C#
.Net
Multithreading
AssertionError when threading in Python
Python
Multithreading
Happens-before relationships with volatile fields and synchronized blocks in Java - and their impact on non-volatile variables?
Java
Multithreading
Synchronized
Volatile
Wait until boolean value changes it state
Java
Multithreading
Boolean
role of multithreading in web application
Java
Multithreading
Servlets
Web Applications
EF Data Context - Async/Await & Multithreading
C#
.Net
Multithreading
Entity Framework
Async Await
Should I use a separate ScriptEngine and CompiledScript instances per each thread?
Java
Multithreading
Nashorn
Jsr223
Why is `synchronized (new Object()) {}` a no-op?
Java
Multithreading
Java Memory-Model
Does ruby have real multithreading?
Ruby
Multithreading
Concurrency
Difference between the main thread and UI thread
Android
Multithreading
WSACancelBlockingCall exception
C#
Multithreading
Sockets
Socketexception
Throw a NullReferenceException while calling the set_item method of a Dictionary object in a multi-threading scenario
C#
Multithreading
Dictionary
Locking
Spawn Multiple Threads for work then wait until all finished
C#
Multithreading
Backgroundworker
Starting Tasks In foreach Loop Uses Value of Last Item
C#
Multithreading
Task Parallel-Library
What is a race condition?
Multithreading
Concurrency
Terminology
Race Condition
Why must wait() always be in synchronized block
Java
Multithreading
Concurrency
Wait
how to wait for Android runOnUiThread to be finished?
Java
Android
Multithreading
Entity Framework and Multi threading
.Net
Multithreading
Frameworks
Entity
How Threadpool re-use Threads and how it works
Java
Multithreading
Concurrency
Threadpool
Can I use std::async without waiting for the future limitation?
C++
Multithreading
C++11
Asynchronous
Stdasync
How to execute a functor or a lambda in a given thread in Qt, GCD-style?
C++
Multithreading
Qt
Random over ThreadLocalRandom
Java
Multithreading
Random
Tracking progress of joblib.Parallel execution
Python
Multithreading
Parallel Processing
Multiprocessing
Joblib
CompletableFuture, supplyAsync() and thenApply()
Multithreading
Java 8
Concurrency
Completable Future
Futuretask
How can I pass a reference to a stack variable to a thread?
Multithreading
Rust
Reference
Lifetime
Golang blocking and non blocking
Multithreading
Go
Nonblocking
Is recent GTK 3.22 still Boehm GC friendly (thread issue)?
C
Linux
Multithreading
Gtk
Boehm Gc
How to kill a thread instantly in C#?
C#
Winforms
Multithreading
Do lock-free algorithms really perform better than their lock-full counterparts?
Multithreading
Synchronization
Lock Free
Steps in Context Switching
Multithreading
Process
Context Switch
What's the difference between notify_all() and notify_one() of std::condition_variable?
C++
Multithreading
C++11
Condition Variable
why using volatile with synchronized block?
Java
Multithreading
Volatile
Synchronized
Double Checked-Locking
Is Objective-C's NSMutableArray thread-safe?
Objective C
Ios
Multithreading
Nsmutablearray
Python Multiprocessing Process or Pool for what I am doing?
Python
Multithreading
Asynchronous
Multiprocessing
Why does Monitor.PulseAll result in a "stepping stair" latency pattern in signaled threads?
C#
.Net
Multithreading
Latency
Why is the destructor of a future returned from `std::async` blocking?
C++
Multithreading
C++11
Asynchronous
Std
Reading an int that's updated by Interlocked on other threads
C#
.Net
Multithreading
Interlocked
Interlocked Increment
Android Studio threaded debugging
Java
Multithreading
Debugging
Android Studio
Breakpoints
What is the recommended way to wait till the Completable future threads finish
Java
Multithreading
Concurrency
Completable Future
Is Async/Await using Task.Run starting a new thread asynchronously?
C#
Multithreading
Async Await
How to initialize a Thread in Kotlin?
Java
Multithreading
Kotlin
Does multithreading make sense for IO-bound operations?
Multithreading
Optimization
What is a "spark" in Haskell
Multithreading
Haskell
Parallel Processing
Multicore
Do I need a mutex for reading?
C++
Multithreading
Mutex
C# multi-threading: Acquire read lock necessary?
C#
Multithreading
Threads & Processes Vs MultiThreading & Multi-Core/MultiProcessor : How they are mapped?
Multithreading
Process
Multicore
How to check if running on UI thread in Android?
Android
Multithreading
How to update GUI with backgroundworker?
C#
Wpf
Multithreading
Winforms
Backgroundworker
How to start/stop/restart a thread in Java?
Java
Multithreading
Distinguishing between Java threads and OS threads?
Java
Linux
Jvm
Multithreading
Posix
Proper way to Dispose of a BackGroundWorker
C#
.Net
Multithreading
Backgroundworker
Why we need Thread.MemoryBarrier()?
C#
.Net
Multithreading
Thread Safety
Memory Barriers
What is recommended way for spawning threads from a servlet in Tomcat
Java
Multithreading
Tomcat
Servlets
Spring Mvc
How to "wait" a Thread in Android
Java
Android
Multithreading
Ensuring task execution order in ThreadPool
C#
Multithreading
Design Patterns
Concurrency
Threadpool
How to shutdown an ExecutorService?
Java
Multithreading
Executorservice
Shutdown
What does Thread Affinity mean?
Java
Multithreading
Concurrency
Terminology
Difference between volatile and synchronized in Java
Java
Multithreading
Java Me
Synchronized
Volatile
Delayed start of a thread in C++ 11
C++
Multithreading
C++11
Is the += operator thread-safe in Java?
Java
Multithreading
-[UIApplication delegate] must be called from main thread only
Ios
Multithreading
Cocoa Touch
Thread Safety
Uiapplication
How to implement simple threading with a fixed number of worker threads
Java
Multithreading
Concurrency
Why is a while loop needed around pthread wait conditions?
C
Multithreading
Pthreads
Execute Background Task In Javascript
Javascript
Multithreading
Is there a way to detect if an object is locked?
Multithreading
C# 3.0
Is it safe to read an integer variable that's being concurrently modified without locking?
C++
Multithreading
Concurrency
What is the difference between corePoolSize and maxPoolSize in the Spring ThreadPoolTaskExecutor
Java
Spring
Multithreading
How to tell if a thread is the main thread in C#
C#
.Net
Multithreading
Why not to start a thread in the constructor? How to terminate?
Java
Multithreading
Terminate
C# Call a method in a new thread
C#
Multithreading
Does async programming mean multi-threading?
Javascript
Jquery
Multithreading
Asynchronous
Thread Safety: Class Variables in Ruby
Ruby
Multithreading
Thread Safety
Metaprogramming
Ruby 1.9.2
Java thread dump: Difference between "waiting to lock" and "parking to wait for"?
Java
Multithreading
Locking
Jvm
Thread Dump
When to use BlockingCollection and when ConcurrentBag instead of List<T>?
C#
Wpf
Multithreading
Linq
Task Parallel-Library
Can NoticationManager.notify() be called from a worker thread?
Android
Multithreading
Notifications
Android Notifications
How can the wait() and notify() methods be called on Objects that are not threads?
Java
Multithreading
Wait
Notify
Return Task<bool> instantly
C#
Multithreading
Windows Phone-7
Task Parallel-Library
Why does this small Java program make MacOS restart?
Java
Multithreading
Macos
Operating System
How do servlets work? Instantiation, sessions, shared variables and multithreading
Java
Multithreading
Servlets
Session Variables
Instance Variables
Volatile vs Static in Java
Java
Multithreading
Concurrency
Static
Volatile
Difference between thread's context class loader and normal classloader
Java
Multithreading
Jvm
Classloader
How to debug a single thread in Visual Studio?
C#
asp.net
Multithreading
Visual Studio-2010
Breakpoints
Daemon Threads Explanation
Python
Multithreading
Daemon
Python Multithreading
Threads vs Processes in Linux
Linux
Performance
Multithreading
Process
How to timeout a thread
Java
Timeout
Multithreading
Timer
Maximum number of threads per process in Linux?
Linux
Multithreading
What is the difference between concurrency, parallelism and asynchronous methods?
Multithreading
Asynchronous
Concurrency
Android "Only the original thread that created a view hierarchy can touch its views."
Android
Multithreading
Running multiple AsyncTasks at the same time -- not possible?
Android
Multithreading
Android Asynctask
What is the use of join() in Python threading?
Python
Multithreading
Python Multithreading
What is the difference between Task.Run() and Task.Factory.StartNew()
C#
Multithreading
Task Parallel-Library
Catch a thread's exception in the caller thread?
Python
Multithreading
Exception
Semaphore vs. Monitors - what's the difference?
Multithreading
Semaphore
Monitor
Is the C# static constructor thread safe?
C#
Multithreading
Singleton
Get a list of all threads currently running in Java
Java
Multithreading
Jvm
Use cases for RxJava schedulers
Java
Multithreading
Thread Safety
Rx Java
Rx Android
What does 'synchronized' mean?
Java
Multithreading
Keyword
Synchronized
What does java.lang.Thread.interrupt() do?
Java
Multithreading
Difference between CompletableFuture, Future and RxJava's Observable
Java
Multithreading
Asynchronous
Java 8
Rx Java
std::lock_guard or std::scoped_lock?
C++
Multithreading
Locking
C++17
How many threads can a Java VM support?
Java
Multithreading
Difference between a "coroutine" and a "thread"?
Architecture
Multithreading
System
Coroutine
What's the difference between Thread start() and Runnable run()
Java
Multithreading
Concurrency
Runnable
C# Events and Thread Safety
C#
Multithreading
Events
What exactly is std::atomic?
C++
Multithreading
C++11
Atomic
How to obtain a Thread id in Python?
Python
Multithreading
Python Multithreading
Python Logging
Task continuation on UI thread
C#
.Net
Wpf
Multithreading
Task
ExecutorService, how to wait for all tasks to finish
Java
Multithreading
Threadpool
Executorservice
Can't pickle <type 'instancemethod'> when using multiprocessing Pool.map()
Python
Multithreading
Multiprocessing
Pickle
Pool
Handling exceptions from Java ExecutorService tasks
Java
Multithreading
Exception
Executorservice
Threadpoolexecutor
Java: How to test methods that call System.exit()?
Java
Multithreading
Unit Testing
Junit
Testability
Creating Threads in python
Python
Multithreading
multiprocessing vs multithreading vs asyncio in Python 3
Python
Multithreading
Python 3.x
Multiprocessing
Python Asyncio
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
Multiprocessing vs Threading Python
Python
Multithreading
Multiprocessing
Java synchronized method lock on object, or method?
Java
Multithreading
Thread Safety
Locking
Synchronized
What is the difference between a thread and a fiber?
Multithreading
Coroutine
Fiber
Do spurious wakeups in Java actually happen?
Java
Multithreading
Locking
Spurious Wakeup
Is there any way to kill a Thread?
Python
Multithreading
Kill
Terminate
Redis is single-threaded, then how does it do concurrent I/O?
Multithreading
Redis
The calling thread must be STA, because many UI components require this
Wpf
Xaml
Multithreading
Facebook
Cross-thread operation not valid: Control 'textBox1' accessed from a thread other than the thread it was created on
C#
Multithreading
Invoke
Uart
What is thread safe or non-thread safe in PHP?
Php
Multithreading
Package
Thread Safety
Threadcontext
Is errno thread-safe?
C
Linux
Multithreading
Gcc
Choose between ExecutorService's submit and ExecutorService's execute
Java
Multithreading
Executorservice
How is CountDownLatch used in Java Multithreading?
Java
Multithreading
Countdown
Countdownlatch
Synchronization vs Lock
Java
Multithreading
Concurrency
Synchronization
java.util.concurrent
Automating the InvokeRequired code pattern
C#
Multithreading
Winforms
Thread Safety
Invokerequired
Mutex example / tutorial?
C++
C
Multithreading
Synchronization
Mutex
Are lists thread-safe?
Python
Multithreading
List
Python 3.x
Python Multithreading
What is a daemon thread in Java?
Java
Multithreading
How do I get the backtrace for all the threads in GDB?
Multithreading
Debugging
Gdb
Backtrace
How can I convert this foreach code to Parallel.ForEach?
C#
Multithreading
.Net 4.0
parallel.foreach
Recursive Lock (Mutex) vs Non-Recursive Lock (Mutex)
Multithreading
Locking
Mutex
Deadlock
Recursive Mutex
How to catch an Exception from a thread
Java
Multithreading
Waiting on a list of Future
Java
Multithreading
Future
Run certain code every n seconds
Python
Multithreading
Why is creating a Thread said to be expensive?
Java
Multithreading
Performance
Concurrency
Concurrent HashSet<T> in .NET Framework?
C#
Multithreading
Thread Safety
Locking
Mutex
What is the most frequent concurrency issue you've encountered in Java?
Java
Multithreading
Concurrency
If I synchronized two methods on the same class, can they run simultaneously?
Java
Multithreading
Synchronized
Java Threads
How can I wait for a thread to finish with .NET?
C#
Multithreading
Python Threading String Arguments
Python
Multithreading
What is a mutex?
Multithreading
Concurrency
Mutex
How to use WPF Background Worker
C#
Wpf
Multithreading
Backgroundworker
How efficient is locking an unlocked mutex? What is the cost of a mutex?
Multithreading
Locking
Mutex
Blocking
Technically, why are processes in Erlang more efficient than OS threads?
Multithreading
Erlang
What are the differences between the threading and multiprocessing modules?
Python
Multithreading
Parallel Processing
Process
Multiprocessing
Executors.newCachedThreadPool() versus Executors.newFixedThreadPool()
Java
Multithreading
Concurrency
Executorservice
Threadpoolexecutor
Why is there no GIL in the Java Virtual Machine? Why does Python need one so bad?
Java
Python
Multithreading
Jvm
Gil
Service vs IntentService in the Android platform
Android
Multithreading
Android Service
Android Intentservice
How do synchronized static methods work in Java and can I use it for loading Hibernate entities?
Java
Multithreading
Hibernate
Concurrency
Synchronization
Why invoke Thread.currentThread.interrupt() in a catch InterruptException block?
Java
Multithreading
C# Thread safe fast(est) counter
C#
Multithreading
Thread Safety
Counter
What is a deadlock?
Multithreading
Concurrency
Locking
Deadlock
Attempted to read or write protected memory. This is often an indication that other memory is corrupt
C#
.Net
Multithreading
Memory Management
How to get awaitable Thread.Sleep?
C#
.Net
Multithreading
Async Await
Multithreading: What is the point of more threads than cores?
Multithreading
Hardware
Cpu Cores
Is there a way of setting culture for a whole application? All current threads and new threads?
C#
Multithreading
Cultureinfo
What happens to a detached thread when main() exits?
C++
Multithreading
C++11
Exit
Stdthread
Thread pooling in C++11
C++
Multithreading
C++11
Threadpool
Stdthread
What are the differences between various threading synchronization options in C#?
C#
Multithreading
Synchronization
Locking
Mutex
BackgroundWorker vs background Thread
.Net
Winforms
Multithreading
Backgroundworker
Why is volatile not considered useful in multithreaded C or C++ programming?
C++
C
Multithreading
Volatile
C++ Faq
C++11 std::threads vs posix threads
C++
Multithreading
C++11
Pthreads
How can I monitor the thread count of a process on linux?
Linux
Multithreading
Monitor
Can num++ be atomic for 'int num'?
C++
C
Multithreading
Assembly
Atomic
Is Meyers' implementation of the Singleton pattern thread safe?
C++
Multithreading
Design Patterns
How should I unit test multithreaded code?
Multithreading
Unit Testing
Volatile vs. Interlocked vs. lock
C#
Multithreading
Locking
Volatile
Interlocked
What is the volatile keyword useful for?
Java
Multithreading
Keyword
Volatile
Why is setState in reactjs Async instead of Sync?
Javascript
Multithreading
Asynchronous
Reactjs
IllegalMonitorStateException on wait() call
Java
Multithreading
Wait
Creating a blocking Queue<T> in .NET?
C#
.Net
Multithreading
Collections
Queue
Is iterating ConcurrentHashMap values thread safe?
Java
Multithreading
Concurrency
Thread Safety
Concurrenthashmap
What does this thread join code mean?
Java
Multithreading
python multithreading wait till all threads finished
Python
Multithreading
How do I abort/cancel TPL Tasks?
C#
.Net
Multithreading
Task
Abort
What does SynchronizationContext do?
C#
.Net
Multithreading
How to articulate the difference between asynchronous and parallel programming?
Multithreading
Asynchronous
Parallel Processing
How to run functions in parallel?
Python
Multithreading
Multiprocessing
Why does “while(true)” without “Thread.sleep” cause 100% CPU usage on Linux but not on Windows?
Java
Linux
Windows
Multithreading
Cpu Usage
How do I terminate a thread in C++11?
C++
Multithreading
C++11
Why CancellationToken is separate from CancellationTokenSource?
C#
Multithreading
Task Parallel-Library
Cancellationtokensource
Cancellation Token
Is it safe to get values from a java.util.HashMap from multiple threads (no modification)?
Java
Multithreading
Concurrency
Hashmap
Implement C# Generic Timeout
C#
Multithreading
C# 3.0
Asynchronous
Timeout
How can I run code on a background thread on Android?
Android
Multithreading
What is the difference between packaged_task and async
C++
Multithreading
C++11
Stdasync
Packaged Task
Is it smart to replace boost::thread and boost::mutex with c++11 equivalents?
C++
Multithreading
C++11
Boost
Mutex
Maximum number of threads in a .NET app?
C#
.Net
Multithreading
When to use volatile with multi threading?
C++
Multithreading
Concurrency
Atomic
Volatile
What does the thread_local mean in C++11?
C++
Multithreading
C++11
Thread Local
Thread Local-Storage
Should a return statement be inside or outside a lock?
C#
.Net
Multithreading
Mutex
What is the difference between lock and Mutex?
C#
Multithreading
Synchronization
"Java DateFormat is not threadsafe" what does this leads to?
Java
Multithreading
Date Format
Asynctask vs Thread in android
Android
Multithreading
Android Asynctask
How to call a method with a separate thread in Java?
Java
Multithreading
Best practice: AsyncTask during orientation change
Android
Multithreading
Exception
Thread vs ThreadPool
.Net
Multithreading
Architecture
Threadpool
When to use enumerateObjectsUsingBlock vs. for
Objective C
Multithreading
Ios4
Objective C-Blocks
What's a monitor in Java?
Java
Multithreading
Concurrency
Monitor
Parallel.ForEach() vs. foreach(IEnumerable<T>.AsParallel())
C#
.Net
Multithreading
Parallel Processing
parallel.foreach
Thread context switch Vs. process context switch
Multithreading
Process
Context Switch
Difference between DispatchQueue.main.async and DispatchQueue.main.sync
Ios
Swift
Multithreading
Swift3
Concurrency
Why is Thread.Sleep so harmful
C#
Multithreading
Sleep
JavaScript and Threads
Javascript
Multithreading
Grasping the Node JS alternative to multithreading
Multithreading
node.js
Which concurrent Queue implementation should I use in Java?
Java
Multithreading
Concurrency
Queue
C++0x has no semaphores? How to synchronize threads?
C++
Multithreading
Synchronization
C++11
Boost Thread
Are non-synchronised static methods thread safe if they don't modify static class variables?
Java
Multithreading
Concurrency
Static
Thread Safety
What is thread contention?
Multithreading
Language Agnostic
What does threadsafe mean?
Multithreading
Thread Safety
Definition
How to get thread id from a thread pool?
Java
Multithreading
Threadpool
Executorservice
Executors
What is the difference between mutex and critical section?
Windows
Linux
Multithreading
Programming Languages
Android: When should I use a Handler() and when should I use a Thread?
Android
Multithreading
Android Handler
How to use the CancellationToken property?
C#
Multithreading
Concurrency
Cancellation
Cancellation Token
Understanding the Event Loop
Javascript
Multithreading
node.js
Asynchronous
Event Loop
Asynchronous vs Multithreading - Is there a difference?
Multithreading
Language Agnostic
Asynchronous
Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on
C#
Multithreading
Winforms
Invoke
Conditional Variable vs Semaphore
Multithreading
Operating System
Synchronization
Semaphore
Mutual Exclusion
Is the != check thread safe?
Java
Multithreading
Thread Safety
Atomic
Race Condition
Are Java static initializers thread safe?
Java
Multithreading
Static
Synchronization
Static Initializer
Android - Prevent white screen at startup
Java
Android
Multithreading
Performance
Cold Start
Multiprocessing causes Python to crash and gives an error may have been in progress in another thread when fork() was called
Python
Python 3.x
Multithreading
Macos
Impossible to make a cached thread pool with a size limit?
Java
Multithreading
Concurrency
Executorservice
Threadpoolexecutor
Difference between -pthread and -lpthread while compiling
Multithreading
Gcc
Thread Safety
Pthreads
Compiler Flags
Signal handling with multiple threads in Linux
C
Linux
Multithreading
Signals
Ipc
How to check current thread in Swift 3?
Ios
Multithreading
Swift3
Nsthread
Is non-blocking I/O really faster than multi-threaded blocking I/O? How?
Multithreading
Io
Blocking
Nonblocking
Concurrent vs serial queues in GCD
Ios
Multithreading
Concurrency
Grand Central-Dispatch
Windows threading: _beginthread vs _beginthreadex vs CreateThread C++
C++
C
Multithreading
Winapi
How to know if other threads have finished?
Java
Multithreading
Can Powershell Run Commands in Parallel?
Multithreading
Powershell
Parallel Processing
Does PHP have threading?
Php
Multithreading
Apache
Command Line-Interface
How to use multiprocessing queue in Python?
Python
Multithreading
Multiprocessing
Locking pattern for proper use of .NET MemoryCache
C#
.Net
Multithreading
Memorycache
How to make a Java thread wait for another thread's output?
Java
Multithreading
omp parallel vs. omp parallel for
Multithreading
Parallel Processing
Openmp
Threading in a PyQt application: Use Qt threads or Python threads?
Python
Multithreading
Pyqt
When should we use mutex and when should we use semaphore
Linux
Multithreading
Synchronization
Mutex
Semaphore
Does async(launch::async) in C++11 make thread pools obsolete for avoiding expensive thread creation?
C++
Multithreading
Asynchronous
C++11
Threadpool
How to use wait and notify in Java without IllegalMonitorStateException?
Java
Multithreading
Exception
Java Threads
Visual Studio, debug one of multiple threads
C#
Multithreading
Visual Studio-2010
Difference between WAIT and BLOCKED thread states
Java
Multithreading
Block
Wait
Getting thread id of current method call
Iphone
Objective C
Cocoa
Multithreading
ApartmentState for dummies
.Net
Multithreading
Thread Safety in Python's dictionary
Python
Multithreading
Dictionary
Thread Safety
Java Singleton and Synchronization
Java
Multithreading
Synchronization
Singleton
Difference between dispatch_async and dispatch_sync on serial queue?
Ios
Multithreading
Grand Central-Dispatch
Returning a value from thread?
C#
.Net
Multithreading
Is it considered acceptable to not call Dispose() on a TPL Task object?
C#
.Net
Multithreading
Dispose
Task Parallel-Library
Why does the lock object have to be static?
C#
Multithreading
Locking
Waiting until the task finishes
Swift
Multithreading
Asynchronous
Swift3
Grand Central-Dispatch
How to wait for a BackgroundWorker to cancel?
C#
.Net
Multithreading
Backgroundworker
When to use thread pool in C#?
C#
Multithreading
Threadpool
How to keep a .NET console app running?
C#
Multithreading
Sleep
Manualresetevent
How do I choose between Semaphore and SemaphoreSlim?
C#
Multithreading
Semaphore
kill -3 to get java thread dump
Java
Multithreading
Dump
Re-entrant locks in C#
C#
.Net
Multithreading
Locking
Deadlock
When does Java's Thread.sleep throw InterruptedException?
Java
Multithreading
Sleep
Interrupted Exception
Interruption
How expensive is the lock statement?
C#
.Net
Multithreading
Locking
Parallel Processing
Java thread executing remainder operation in a loop blocks all other threads
Java
Multithreading
How do you display a Toast from a background thread on Android?
Android
Multithreading
Android Toast
Semaphore - What is the use of initial count?
C#
Multithreading
Concurrency
Semaphore
catch exception that is thrown in different thread
C#
Multithreading
Exception Handling
How to track child process using strace?
Linux
Multithreading
Strace
Is Random class thread safe?
Java
Multithreading
Random
Thread Safety
What is "thread local storage" in Python, and why do I need it?
Python
Multithreading
Thread Local
Why is spawning threads in Java EE container discouraged?
Java
Multithreading
Jakarta Ee
Do threads have a distinct heap?
C
Windows
Linux
Multithreading
Stack
deciding among subprocess, multiprocessing, and thread in Python?
Python
Multithreading
Parallel Processing
Check whether or not the current thread is the main thread
Objective C
Iphone
Multithreading
Cocoa
xamarin.ios
Break parallel.foreach?
C#
Multithreading
Parallel Processing
parallel.foreach
How to synchronize a static variable among threads running different instances of a class in Java?
Java
Multithreading
Synchronization
Class
Object
"Collection was mutated while being enumerated" on executeFetchRequest
Multithreading
Cocoa
Core Data
NSDefaultRunLoopMode vs NSRunLoopCommonModes
Iphone
Ios
Multithreading
Nsrunloop
Need to understand the usage of SemaphoreSlim
C#
Multithreading
Task Parallel-Library
Semaphore
What is the Re-entrant lock and concept in general?
Multithreading
Locking
Pthreads
LinkedBlockingQueue vs ConcurrentLinkedQueue
Java
Multithreading
Data Structures
Concurrency
Queue
"implements Runnable" vs "extends Thread" in Java
Java
Multithreading
Runnable
Implements
Java Threads
C++ terminate called without an active exception
C++
Multithreading
Deadlock
C++11
How to wait for a number of threads to complete?
Java
Multithreading
Parallel Processing
Wait
reference assignment is atomic so why is Interlocked.Exchange(ref Object, Object) needed?
C#
Multithreading
Atomic
Volatility
threading.Timer - repeat function every 'n' seconds
Python
Multithreading
Timer
Python Multithreading
How can I propagate exceptions between threads?
C++
Multithreading
Exception
Example for boost shared_mutex (multiple reads/one write)?
C++
Multithreading
Boost
Mutex
Boost Thread
iOS start Background Thread
Objective C
Ios
Multithreading
Uikit
Core Foundation
What is the difference between ManualResetEvent and AutoResetEvent in .NET?
C#
.Net
Multithreading
Autoresetevent
Manualresetevent
Static method behavior in multi-threaded environment in java
Java
Multithreading
Static Methods
Does Python support multithreading? Can it speed up execution time?
Python
Multithreading
What is mutex and semaphore in Java ? What is the main difference?
Java
Multithreading
Concurrency
Mutex
Semaphore
What is a thread exit code?
C#
Multithreading
Debugging
Exit Code
Async/Await vs Threads
C#
.Net
Multithreading
Async Await
What is the difference between .Wait() vs .GetAwaiter().GetResult()?
C#
Multithreading
Asynchronous
wait until all threads finish their work in java
Java
Multithreading
Wait
If threads share the same PID, how can they be identified?
Multithreading
Linux Kernel
Pid
The difference between the Runnable and Callable interfaces in Java
Java
Multithreading
Interface
Runnable
Callable
Are Mutexes needed in javascript?
Javascript
Multithreading
Mutex
Using ThreadPool.QueueUserWorkItem in ASP.NET in a high traffic scenario
asp.net
Multithreading
Threadpool
Is Java Regex Thread Safe?
Java
Regex
Multithreading
Returning value from Thread
Java
Android
Multithreading
Which would be better for concurrent tasks on node.js? Fibers? Web-workers? or Threads?
Multithreading
node.js
Concurrency
Web Worker
Fibers
Java Synchronized Block for .class
Java
Multithreading
Synchronization
Locking
Synchronized
Why should Java ThreadLocal variables be static
Java
Multithreading
AsyncTask threads never die
Android
Multithreading
Android Asynctask
Are there any cases when it's preferable to use a plain old Thread object instead of one of the newer constructs?
C#
.Net
Multithreading
Accessing UI (Main) Thread safely in WPF
C#
.Net
Wpf
Multithreading
Datagrid
How to scale threads according to CPU cores?
Java
Multithreading
Cpu Cores
Are "data races" and "race condition" actually the same thing in context of concurrent programming
Multithreading
Concurrency
Language Agnostic
Data Race
How to get the ThreadPoolExecutor to increase threads to max before queueing?
Java
Multithreading
Blockingqueue
Threadpoolexecutor
Scala actors: receive vs react
Scala
Multithreading
Actor
How do I make my ArrayList Thread-Safe? Another approach to problem in Java?
Java
Multithreading
Collections
Synchronization
Arraylist
What are the main uses of yield(), and how does it differ from join() and interrupt()?
Java
Multithreading
Concurrency
Yield
Programmatically find the number of cores on a machine
C++
C
Multithreading
Multiplatform
How to get the return value from a thread in Python?
Python
Multithreading
Return Value
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
MemoryCache Thread Safety, Is Locking Necessary?
C#
Multithreading
Wcf
Memorycache
CountDownLatch vs. Semaphore
Java
Multithreading
Concurrency
Semaphore
Countdownlatch
Do C# Timers elapse on a separate thread?
C#
Multithreading
Timer
C# : What if a static method is called from multiple threads?
C#
Multithreading
Static
When to use Task.Delay, when to use Thread.Sleep?
C#
Multithreading
Task Parallel-Library
Why is lock(this) {...} bad?
C#
Multithreading
Locking
Using a global variable with a thread
Python
Multithreading
Global Variables
Multithreading in Bash
Linux
Multithreading
Bash
Shell
PHP Thread Safe and Non-Thread Safe for Windows
Php
Multithreading
Creating threads - Task.Factory.StartNew vs new Thread()
C#
.Net
Multithreading
.Net 4.0
The current SynchronizationContext may not be used as a TaskScheduler
C#
Multithreading
Nunit
Task Parallel-Library
Resharper 6.0
FixedThreadPool vs CachedThreadPool: the lesser of two evils
Java
Multithreading
Threadpool
Executorservice
java.util.concurrent
Why is i++ not atomic?
Java
Multithreading
Concurrency
How to start two threads at "exactly" the same time
Java
Multithreading
Synchronization of non-final field
Java
Multithreading
Synchronized
How to analyze a java thread dump?
Java
Multithreading
Thread Dump
Multiprocessing example giving AttributeError
Python
Multithreading
STAThread and multithreading
C#
.Net
Multithreading
Sta
java.lang.OutOfMemoryError: Java heap space
Java
Multithreading
Out of-Memory
Heap Memory
What is the purpose of Looper and how to use it?
Android
Multithreading
Android Looper
What is the difference between fork and thread?
C
Process
Multithreading
Fork
background function in Python
Python
Multithreading
How to get integer thread id in c++11
C++
Multithreading
C++11
Undefined reference to pthread_create in Linux
C
Linux
Multithreading
Pthreads
Context switches much slower in new linux kernels
Linux
Multithreading
Linux Kernel
Kernel
Ubuntu 12.04
How many threads are spawned in parallelStream in Java 8?
Java
Multithreading
Java 8
java.util.concurrent
How to run a background task in a servlet based web application?
Multithreading
Jakarta Ee
Servlets
Background Process
Scheduledexecutorservice
Monitor vs lock
C#
.Net
Multithreading
Locking
Monitor
Understanding java.lang.Thread.State: WAITING (parking)
Java
Multithreading
How to check if a std::thread is still running?
C++
Multithreading
C++11
Stdthread
C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming?
C++
Multithreading
C++11
Language Lawyer
Memory Model
Get the status of a std::future
C++
Multithreading
C++11
Future
How to create threads in nodejs
Multithreading
node.js
Asynchronous
Parallel Processing
Understanding std::atomic::compare_exchange_weak() in C++11
C++
Multithreading
C++11
Atomic
Which is more efficient, basic mutex lock or atomic integer?
Multithreading
Operating System
Pthreads
Mutex
Atomic
Loop doesn't see value changed by other thread without a print statement
Java
Multithreading
Synchronization
Busy Waiting
Threads vs. Async
Python
Multithreading
Asynchronous
Twisted
Is a HashMap thread-safe for different keys?
Java
Multithreading
Thread Safety
Hashmap
Green Threads vs Non Green Threads
Java
Multithreading
Terminology
Proper way to implement a never ending task. (Timers vs Task)
C#
Multithreading
Timer
Task Parallel-Library
.Net 4.5
Do I have to acquire lock before calling condition_variable.notify_one()?
C++
Multithreading
Condition Variable
Why is synchronized block better than synchronized method?
Java
Multithreading
Synchronization
Simple Deadlock Examples
Multithreading
Language Agnostic
Deadlock
The application may be doing too much work on its main thread
Android
Multithreading
iphone ios running in separate thread
Iphone
Multithreading
Ios
Thread Safety
Are static variables shared between threads?
Java
Multithreading
Concurrency
Static
Memory Visibility
CoreData: warning: Unable to load class named
Multithreading
Core Data
Swift
Nsmanagedobject
Android AsyncTask threads limits?
Android
Multithreading
Android Asynctask
What's the meaning of an object's monitor in Java? Why use this word?
Java
Multithreading
Monitor
Platform.runLater and Task in JavaFX
Java
Multithreading
User Interface
Task
Javafx
How can one use multi threading in PHP applications
Php
Multithreading
how to know what is NOT thread-safe in ruby?
Ruby
Multithreading
Concurrency
Thread Safety
Ruby on-Rails-4
java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare();
Android
Multithreading
Toast
What is the difference between ExecutorService.submit and ExecutorService.execute in this code in Java?
Java
Multithreading
Threadpool
Executorservice
What is the difference between Lock and RLock
Python
Multithreading
Locking
Reentrancy
Why is this class not thread safe?
Java
Multithreading
Thread Safety
Proper use of mutexes in Python
Python
Multithreading
Mutex
Synchronizing access to SimpleDateFormat
Java
Multithreading
Concurrency
Simpledateformat
Accessing UI thread handler from a service
Android
Multithreading
User Interface
Service
Handler
std::thread calling method of class
C++
Multithreading
C++11
How does ThreadPoolExecutor().map differ from ThreadPoolExecutor().submit?
Python
Multithreading
Python 3.x
Python Multithreading
concurrent.futures
Using multiprocessing.Process with a maximum number of simultaneous processes
Python
Multithreading
Multiprocessing
WAITING at sun.misc.Unsafe.park(Native Method)
Java
Multithreading
Concurrency
java.util.concurrent
I've heard i++ isn't thread safe, is ++i thread-safe?
C++
C
Multithreading
Python threading. How do I lock a thread?
Python
Multithreading
In Java, how do you determine if a thread is running?
Java
Multithreading
Is it legal to call the start method twice on the same Thread?
Java
Android
Multithreading
Java: Thread.currentThread().sleep(x) vs. Thread.sleep(x)
Java
Eclipse
Multithreading
Sleep
Warnings
"async Task then await Task" vs "Task then return task"
C#
Multithreading
Asynchronous
Does a locked object stay locked if an exception occurs inside it?
C#
.Net
Multithreading
Exception
Locking
Performance of ThreadLocal variable
Java
Multithreading
Performance
Thread Local
How to terminate a thread when main program ends?
Python
Multithreading
Python Multithreading
How does Actors work compared to threads?
Multithreading
Concurrency
Actor
Message Passing
software threads vs hardware threads
Multithreading
Hardware
is there a 'block until condition becomes true' function in java?
Java
Multithreading
Block
Concurrent Dictionary Correct Usage
C#
.Net
Multithreading
.Net 4.0
Concurrency
Why the Global Interpreter Lock?
Python
Multithreading
Scripting
Locking
Bytecode
When should I use ConcurrentSkipListMap?
Java
Performance
Multithreading
Map
Concurrenthashmap
How do I update an ObservableCollection via a worker thread?
C#
Wpf
Multithreading
Observablecollection
Who is calling the Java Thread interrupt() method if I'm not?
Java
Multithreading
Exception
Exception Handling
Java Thread Garbage collected or not
Java
Multithreading
Garbage Collection
Lock-free multi-threading is for real threading experts
C#
.Net
Multithreading
Lock Free
When exactly do you use the volatile keyword in Java?
Java
Multithreading
Volatile
Calling a method on the main thread?
Ios
Objective C
Iphone
Multithreading
Methods
What are the correct link options to use std::thread in GCC under linux?
C++
Multithreading
G++
C++11
Android SDK AsyncTask doInBackground not running (subclass)
Android
Multithreading
Android Emulator
Android Asynctask
Turning an ExecutorService to daemon in Java
Java
Multithreading
Threadpool
Executorservice
Java Threads
How to stop a looping thread in Python?
Python
Multithreading
Wxpython
Create thread safe array in Swift
Ios
Arrays
Swift
Multithreading
Read Write
How do threads work in Python, and what are common Python-threading specific pitfalls?
Python
Multithreading
How to limit execution time of a function call?
Python
Multithreading
Are C++ Reads and Writes of an int Atomic?
C++
Multithreading
Synchronization
Change WPF controls from a non-main thread using Dispatcher.Invoke
C#
Wpf
Multithreading
Dispatcher
C# Thread Termination and Thread.Abort()
C#
.Net
Multithreading
How does Java makes use of multiple cores?
Java
Multithreading
Parallel Processing
Difference between user-level and kernel-supported threads?
Multithreading
Process
Operating System
Theory
Does the C++ volatile keyword introduce a memory fence?
C++
Multithreading
C++11
Volatile
Python time.sleep() vs event.wait()
Python
Multithreading
Sleep
Understanding std::hardware_destructive_interference_size and std::hardware_constructive_interference_size
C++
Multithreading
Concurrency
C++17
Cpu Cache
Can I use threads to carry out long-running jobs on IIS?
asp.net
Multithreading
Iis
Background Process
What is the difference between a process and a thread?
Multithreading
Process
Operating System
How to check if current thread is not main thread
Java
Android
Multithreading
WebBrowser Control in a new thread
C#
Multithreading
Browser
What operations in Java are considered atomic?
Java
Multithreading
Atomic
Can multithreading be implemented on a single processor system?
C
Windows
Multithreading
Winapi
Calling async methods from non-async code
C#
asp.net
Multithreading
Asynchronous
Task Parallel-Library
How to exit the entire application from a Python thread?
Python
Multithreading
std::unique_lock<std::mutex> or std::lock_guard<std::mutex>?
C++
Multithreading
C++11
Mutual Exclusion
Stdmutex
Background thread with QThread in PyQt
Python
Multithreading
Pyqt
Pyqt4
Qthread
What could be the cause of RejectedExecutionException
Java
Multithreading
Processing single file from multiple processes
Python
Multithreading
Multiprocessing
Celery parallel distributed task with multiprocessing
Python
Django
Multithreading
Multiprocessing
Celery
Is armadillo solve() thread safe?
C++
Multithreading
Openmp
Blas
Armadillo
'using' statement vs 'try finally'
C#
.Net
Multithreading
Using Statement
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
c++, std::atomic, what is std::memory_order and how to use them?
C++
Multithreading
Atomic
Memory Model
Stdatomic
Passing object by reference to std::thread in C++11
C++
Multithreading
C++11
Pass by-Reference
Stdthread
Thread local storage in Python
Python
Multithreading
Thread Local-Storage
Is it possible to determine the thread holding a mutex?
C
Linux
Multithreading
Pthreads
Mutex
What's the difference between Invoke() and BeginInvoke()
C#
.Net
Multithreading
Invoke
Begininvoke
What is std::promise?
C++
Multithreading
C++11
Promise
Standard Library
When is ReaderWriterLockSlim better than a simple lock?
C#
.Net
Multithreading
Locking
When should I use a CompletionService over an ExecutorService?
Java
Multithreading
Concurrency
Completion Service
How to Multi-thread an Operation Within a Loop in Python
Multithreading
Python 2.7
Python Multithreading
Simplest and understandable example of volatile keyword in Java
Java
Multithreading
Concurrency
Volatile
Execute a function after Flask returns response
Python
Multithreading
Flask
Invoke or BeginInvoke cannot be called on a control until the window handle has been created
Winforms
Multithreading
How is Java's ThreadLocal implemented under the hood?
Java
Multithreading
Thread Local
Thread Static
In ArrayBlockingQueue, why copy final member field into local final variable?
Java
Multithreading
Optimization
Final
Local Variables
Timeout on a function call
Python
Multithreading
Timeout
Python Multithreading
Java JVM profiling, thread status - what does "Monitor" status mean?
Java
Multithreading
Jvm
NSOperation and NSOperationQueue working thread vs main thread
Ios
Objective C
Multithreading
Nsoperation
Nsoperationqueue
How to get the number of threads in a Java process
Java
Multithreading
ContextSwitchDeadlock Was Detected error in C#
C#
Multithreading
Java Wait for thread to finish
Java
Multithreading
Swing
Download
Wait
Should i use ThreadPools or Task Parallel Library for IO-bound operations
C#
Multithreading
Task Parallel-Library
Threadpool
Parallel Extensions
Thread vs. Threading
Python
Multithreading
Python Multithreading
Is there an advantage to use a Synchronized Method instead of a Synchronized Block?
Java
Multithreading
Concurrency
Locking
Synchronized
is python capable of running on multiple cores?
Python
Multithreading
How to obtain JNI interface pointer (JNIEnv *) for asynchronous calls
Java
C
Multithreading
Java Native-Interface
Given that HashMaps in jdk1.6 and above cause problems with multi=threading, how should I fix my code
Java
Multithreading
Performance
Collections
C++11 thread-safe queue
C++
Multithreading
C++11
Queue
Condition Variable
Calling async method on button click
C#
Wpf
Multithreading
Windows Phone-8
Asynchronous
Cleanest Way to Invoke Cross-Thread Events
C#
Multithreading
Events
Is ExecutorService (specifically ThreadPoolExecutor) thread safe?
Java
Multithreading
Executorservice
Create multiple threads and wait for all of them to complete
C#
.Net
Multithreading
What is the difference between task and thread?
C#
Multithreading
C# 4.0
Task Parallel-Library
Terminology
ThreadPool.QueueUserWorkItem vs Task.Factory.StartNew
C#
Multithreading
C# 4.0
Task Parallel-Library
Threadpool
C++11: why does std::condition_variable use std::unique_lock?
C++
Multithreading
C++11
Mutex
How to configure a fine tuned thread pool for futures?
Multithreading
Scala
Parallel Processing
Threadpool
Future
Forking vs Threading
Linux
Multithreading
Unix
Programming Languages
Fork
How to create a task (TPL) running a STA thread?
C#
Wpf
Multithreading
Thread Safety
Task Parallel-Library
Java: notify() vs. notifyAll() all over again
Java
Multithreading
Task vs Thread differences
C#
.Net
Multithreading
Task
SpinWait vs Sleep waiting. Which one to use?
C#
Multithreading
Show ProgressDialog Android
Android
Multithreading
Progressdialog
How to sleep the thread in node.js without affecting other threads?
Multithreading
node.js
Asynchronous
Method call to Future.get() blocks. Is that really desirable?
Java
Multithreading
Asynchronous
Executorservice
Executor
How to handle Task.Run Exception
C#
Multithreading
Exception
Concurrency
Task
Are locks unnecessary in multi-threaded Python code because of the GIL?
Python
Multithreading
Locking
Why should wait() always be called inside a loop
Java
Multithreading
Could you explain STA and MTA?
.Net
Multithreading
Com
Apartments
How do you kill a Thread in Java?
Java
Multithreading
Why is Thread not an abstract class and start() not final?
Java
Multithreading
Circular lock-free buffer
C++
Algorithm
Multithreading
Concurrency
Lock Free
The calling thread cannot access this object because a different thread owns it
C#
Wpf
Multithreading
Backgroundworker
Threading pool similar to the multiprocessing Pool?
Python
Multithreading
Missing Features
What is a semaphore?
Multithreading
Concurrency
Semaphore
time.sleep -- sleeps thread or process?
Python
Multithreading
Time
Sleep
Python Internals
How to terminate a thread blocking on socket IO operation instantly?
Java
Multithreading
Sockets
Why does Interlocked.Exchange not support Boolean type?
C#
.Net
Multithreading
Is there a better waiting pattern for c#?
C#
Multithreading
Design Patterns
Why is the != operator not allowed with OpenMP?
C++
C
Multithreading
Parallel Processing
Openmp
Why was the comment that said "Don't format a floppy at the same time" funny when talking about threads and processes?
Multithreading
Process
Operating System
Format
Is malloc thread-safe?
C
Multithreading
Thread Safety
Malloc
Threading in Python
Python
Multithreading
Python Stackless
Force GUI update from UI Thread
C#
Winforms
Multithreading
Handling InterruptedException in Java
Java
Multithreading
Exception Handling
Interrupted Exception
Do zombies exist ... in .NET?
C#
.Net
Multithreading
Load
Zombie Process
How to exit all running threads?
C#
.Net
Winforms
Multithreading
How to create a Looper thread, then send it a message immediately?
Android
Multithreading
Handler
Looper
What does the [[carries_dependency]] attribute mean?
C++
Multithreading
Memory Model
Stdatomic
Carries Dependency
Is multi-thread output from System.out.println interleaved
Java
Multithreading
Synchronization
Printstream
How can I disable new thread/thread exited messages in gdb?
Linux
Multithreading
Logging
Gdb
Java's Fork/Join vs ExecutorService - when to use which?
Java
Multithreading
Concurrency
Executorservice
Fork Join
What is the use of static synchronized method in java?
Java
Multithreading
Core
How does the singleton Bean serve the concurrent request?
Java
Multithreading
Spring
Concurrency
Multiprocessing
When to use std::async vs std::threads?
C++
Multithreading
C++11
Stdasync
Handler vs AsyncTask vs Thread
Android
Multithreading
Android Asynctask
Android Handler
Is Task.Factory.StartNew() guaranteed to use another thread than the calling thread?
C#
Multithreading
Locking
Task
Task Parallel-Library
Avoid synchronized(this) in Java?
Java
Multithreading
Synchronization
Synchronized
How to find what state ManualResetEvent is in?
.Net
Multithreading
Locking
In Java critical sections, what should I synchronize on?
Java
Multithreading
Synchronized
Simple description of worker and I/O threads in .NET
.Net
Multithreading
Iocp
Concurrent JUnit testing
Java
Multithreading
Unit Testing
Concurrency
Junit
What so different about Node.js's event-driven? Can't we do that in ASP.Net's HttpAsyncHandler?
asp.net
Multithreading
node.js
Event Driven
What is marshalling? What is happening when something is "marshalled?"
.Net
Multithreading
Marshalling
Definition
Language Interoperability
Simple example of threading in C++
C++
Multithreading
When to use AtomicReference in Java?
Java
Multithreading
Atomicreference
What kind of problems (if any) would there be combining asyncio with multiprocessing?
Python
Multithreading
Asynchronous
Multiprocessing
Python Asyncio
How to debug a multi-threaded app in IntelliJ?
Java
Multithreading
Debugging
Intellij Idea
How to stop BackgroundWorker on Form's Closing event?
C#
Winforms
Multithreading
Backgroundworker
ReaderWriterLock vs lock{}
C#
.Net
Multithreading
Meaning of daemon property on Python Threads
Python
Multithreading
Daemon
Python Multithreading
Threading Example in Android
Android
Multithreading
Difference between multitasking, multithreading and multiprocessing?
Multithreading
Operating System
Multiprocessing
Multitasking
iOS - Ensure execution on main thread
Ios
Xcode
Multithreading
Multitasking
Shared Resource
Double Checked Locking in Singleton
Java
Multithreading
Design Patterns
Singleton
Does the use of async/await create a new thread?
C#
Multithreading
Async Await
Task Parallel-Library
C# 5.0
Reader/Writer Locks in C++
C++
Multithreading
Locking
Unhandled exceptions in BackgroundWorker
C#
.Net
Multithreading
Debugging
Backgroundworker
How to detect and debug multi-threading problems?
Multithreading
Debugging
Language Agnostic
What's the use of the SyncRoot pattern?
C#
Multithreading
Design Patterns
Concurrency
Terminate a multi-thread python program
Python
Multithreading
How to use background thread in swift?
Ios
Swift
Multithreading
Cocoa Touch
Dispatch Queue
How to run a Runnable thread in Android at defined intervals?
Android
Multithreading
Cancelling a Task is throwing an exception
C#
Multithreading
C# 4.0
Difference between the TPL & async/await (Thread handling)
Multithreading
Task Parallel-Library
Async Await
C# 5.0
How to put a task to sleep (or delay) in C# 4.0?
C#
.Net
Multithreading
Parallel Processing
Task Parallel-Library
What is the difference between Workers and Threads in Puma
Multithreading
Heroku
Ruby on-Rails-4
Puma
Is id = 1 - id atomic?
Java
Multithreading
Atomic
Swap
Scjp
What is the difference between await Task<T> and Task<T>.Result?
C#
Multithreading
Async Await
When to use TaskCreationOptions.LongRunning?
C#
Multithreading
Task Parallel-Library
Task
How can I profile a multithread program in Python?
Python
Multithreading
Profiling
What is the difference between asynchronous programming and multithreading?
C#
Multithreading
Asynchronous
Parallel Processing
Async Await
How do I run a simple bit of code in a new thread?
C#
.Net
Multithreading
How to illustrate multiple threads in sequence diagram?
Multithreading
Uml
Sequence Diagram
ScheduledExecutorService Exception handling
Java
Multithreading
Scheduling
Blocking queue and multi-threaded consumer, how to know when to stop
Java
Multithreading
Producer Consumer
Blockingqueue
Is function call an effective memory barrier for modern platforms?
C
Multithreading
Memory Barriers
What is the performance penalty of C++11 thread_local variables in GCC 4.8?
C++
Linux
Multithreading
Gcc
C++11
Java : Does wait() release lock from synchronized block
Java
Multithreading
Concurrency
Locking
Wait
Active threads in ExecutorService
Java
Multithreading
Concurrency
Writing to a TextBox from another thread?
C#
Winforms
Multithreading
Which Java thread is hogging the CPU?
Java
Multithreading
Cpu
Monitor vs Mutex in c#
C#
Multithreading
Synchronization
Are Thread.sleep(0) and Thread.yield() statements equivalent?
Java
Multithreading
ThreadPoolExecutor Block When Queue Is Full?
Java
Multithreading
Concurrency
Executorservice
Executor
How to get the number of CPUs in Linux using C?
C
Linux
Multithreading
Cpu
Processor
Concurrency: Atomic and volatile in C++11 memory model
C++
Multithreading
Concurrency
C++11
Parallel Processing
Multi-Threading support in c11
C
Multithreading
C11
Condition vs wait notify mechanism
Java
Multithreading
Concurrency
How to implement multithread safe singleton in C++11 without using <mutex>
C++
Multithreading
C++11
Singleton
Atomic
Is there a "try to lock, skip if timed out" operation in C#?
C#
Multithreading
Locking
Is java.sql.Connection thread safe?
Java
Multithreading
Jdbc
Thread Safety
Dbconnection
When to use recursive mutex?
C++
Multithreading
Recursion
Mutex
Recursive Mutex
How a thread should close itself in Java?
Java
Multithreading
what is the correct way to implement a QThread... (example please...)
Multithreading
Qt
Qt4
Qthread
Python threads all executing on a single core
Python
Multithreading
Performance
how to make an application thread safe?
C++
C
Multithreading
Concurrency
Thread Safety
Multi-threading in VBA
Multithreading
Vba
Excel
How many threads is too many?
Multithreading
Performance
Threadpool
Running code in main thread from another thread
Java
Android
Multithreading
Android Handler
What's the difference between "static" and "dynamic" schedule in OpenMP?
C++
Multithreading
Openmp
Run Class methods in threads (python)
Python
Multithreading
Class
Methods
Thread Safe singleton class
Java
Multithreading
Singleton
A very simple multithreading parallel URL fetching (without queue)
Python
Multithreading
Callback
Python Multithreading
Urlfetch
understanding of pthread_cond_wait() and pthread_cond_signal()
C++
Multithreading
Mutex
How would you define a pool of goroutines to be executed at once?
Multithreading
Go
Goroutine
Unable to load files using pickle and multiple modules
Python
Multithreading
Login
Pyqt4
Pickle
When to prefer LinkedBlockingQueue over ArrayBlockingQueue?
Java
Multithreading
Concurrency
Blockingqueue
How do I update the GUI from another thread?
C#
.Net
Multithreading
Winforms
User Interface
What's the difference between deadlock and livelock?
Multithreading
Pthreads
Deadlock
Livelock
What's wrong with using Thread.Abort()
C#
.Net
Multithreading
Return value from thread
Python
Multithreading
Python Multithreading
Exit Code
java thread reuse
Java
Multithreading
Thread safe collections in .NET
C#
.Net
Multithreading
Collections
Difference between racearound condition and deadlock
Multithreading
Deadlock
Race Condition
Multithreading: When would I use a Join?
C#
Multithreading
Why doesn't volatile in java 5+ ensure visibility from another thread?
Java
Multithreading
Concurrency
Volatile
Compiler Bug
How does the OS scheduler regain control of CPU?
Multithreading
Operating System
Multiprocessing
Scheduling
Multitasking
How to use Callable with void return type?
Java
Multithreading
Callable
Multithreading program stuck in optimized mode but runs normally in -O0
C++
Multithreading
Thread Safety
Undefined Behavior
Data Race
C#: Waiting for all threads to complete
C#
Multithreading
Forcing multiple threads to use multiple CPUs when they are available
Java
Concurrency
Multithreading
Multicore
Where do I get a thread-safe CollectionView?
.Net
Wpf
Multithreading
Thread Safety
Collectionview
How difficult is Haskell multi-threading?
Multithreading
Haskell
Concurrency
Multicore
How to stop a java thread gracefully?
Java
Multithreading
Question about terminating a thread cleanly in .NET
C#
.Net
Winforms
Multithreading
How to stop a thread created by implementing runnable interface?
Java
Multithreading
Thread Safety
multiprocessing.Pool: When to use apply, apply_async or map?
Python
Multithreading
Concurrency
Multiprocessing
Using module 'subprocess' with timeout
Python
Multithreading
Timeout
Subprocess
Start thread with member function
C++
Multithreading
C++11
When is a condition variable needed, isn't a mutex enough?
Multithreading
Operating System
Synchronization
Mutex
Condition Variable
Asynchronous IO in Scala with futures
Multithreading
Scala
Io
Future
Tkinter: How to use threads to preventing main event loop from "freezing"
Python
Multithreading
Tkinter
Progress Bar
Event Loop
Pass multiple arguments into std::thread
C++
Multithreading
C++11
When are x86 LFENCE, SFENCE and MFENCE instructions required?
Multithreading
Assembly
X86
Cpu
Memory Fences
How can I distinguish between high- and low-performance cores/threads in C++?
C++
Multithreading
Performance
Intel
Apple M1
Max number of concurrent HttpWebRequests
.Net
Httpwebrequest
Multithreading
Core Data multi thread application
Ios
Iphone
Multithreading
Core Data
Java thread affinity
Java
Multithreading
Scheduling
Setthreadaffinitymask
How to increase thread priority in pthreads?
C++
Linux
Multithreading
Pthreads
Reliably stop System.Threading.Timer?
C#
Multithreading
Timer
What is difference between sleep() method and yield() method of multi threading?
Java
Multithreading
std::thread - naming your thread
C++
Multithreading
C++11
Run code on UI thread in WinRT
.Net
Multithreading
Windows 8
Windows Runtime
Dispatcher
Is a Go goroutine a coroutine?
Multithreading
Go
Goroutine
Using HttpContext.Current in WebApi is dangerous because of async
Multithreading
Asynchronous
asp.net Web-Api
Ninject
Httpcontext
Why use a ReentrantLock if one can use synchronized(this)?
Java
Multithreading
Concurrency
Synchronize
Reentrantlock
Start a flask application in separate thread
Python
Multithreading
Flask
Ways to make maven build faster?
Java
Multithreading
Scala
Maven
Build
Is accessing a variable in C# an atomic operation?
C#
Multithreading
How to create a thread?
C#
Multithreading
how to set CPU affinity of a particular pthread?
Multithreading
Cpu
Processor
Affinity
How do I Understand Read Memory Barriers and Volatile
Multithreading
Volatile
Memory Barriers
Why is UncaughtExceptionHandler not called by ExecutorService?
Java
Multithreading
In .NET, what thread will Events be handled in?
C#
.Net
Events
Multithreading
Delegates
What is the basic concept behind WaitHandle?
C#
.Net
Multithreading
How to wait for all tasks in an ThreadPoolExecutor to finish without shutting down the Executor?
Java
Android
Multithreading
Wait
Threadpoolexecutor
Preemptive threads Vs Non Preemptive threads
Linux
Multithreading
Unix
Pthreads
Debugging multiple threads in eclipse
Java
Eclipse
Multithreading
Debugging
When should you use multithreading? And would multi threading be beneficial if the different threads execute mutually independent tasks?
Java
Multithreading
Will a browser give an iframe a separate thread for JavaScript?
Javascript
Multithreading
Browser
The right way to limit maximum number of threads running at once?
Python
Multithreading
Python Multithreading
Pass keyword arguments to target function in Python threading.Thread
Python
Multithreading
Python 2.7
Python Multithreading
Keyword Argument
How do I spawn threads on different CPU cores?
C#
.Net
Windows
Multithreading
When should the volatile keyword be used in C#?
C#
Multithreading
Programmatic deadlock detection in java
Java
Multithreading
Concurrency
Deadlock
Can I get Unix's pthread.h to compile in Windows?
C
Windows
Multithreading
Pthreads
What does MethodImplOptions.Synchronized do?
.Net
Multithreading
Producer/Consumer threads using a Queue
Java
Multithreading
Queue
Producer Consumer
Trying to run multiple HTTP requests in parallel, but being limited by Windows (registry)
C#
Multithreading
Dotnet Httpclient
How Do I Choose Between the Various Ways to do Threading in Delphi?
Multithreading
Delphi
Asynchronous
How to correctly read an Interlocked.Increment'ed int field?
C#
.Net
Multithreading
Thread Safety
How to stop the execution of tasks in a dispatch queue?
Iphone
Ios
Multithreading
Xcode
Grand Central-Dispatch
What happens when an exception goes unhandled in a multithreaded C++11 program?
C++
Multithreading
Exception
C++11
C++ Faq
How does Keep-alive work with ThreadPoolExecutor?
Java
Multithreading
Keep Alive
Java Synchronized list
Java
Multithreading
Access to disposed closure in C#?
C#
.Net
Multithreading
What are the possible reason for a java.util.concurrent.RejectedExecutionException in a SingleThreadExecutor
Java
Multithreading
Getting the thread ID from a thread
C#
.Net
Multithreading
Heap corruption under Win32; how to locate?
C++
Windows
Multithreading
Debugging
Memory
Make 2 functions run at the same time
Python
Multithreading
Parallel Processing
Multi-threaded use of SQLAlchemy
Python
Multithreading
Sqlalchemy
Is a volatile int in Java thread-safe?
Java
Multithreading
Thread Safety
Volatile
shutdown and awaitTermination which first call have any difference?
Java
Multithreading
Executorservice
TimerTask vs Thread.sleep vs Handler postDelayed - most accurate to call function every N milliseconds?
Java
Android
Multithreading
Handler
Timertask
Okhttp response callbacks on the main thread
Android
Multithreading
Okhttp
How to combine python asyncio with threads?
Python
Multithreading
Python Asyncio
Aiohttp
Deadlock detection in Java
Java
Multithreading
Deadlock
How to estimate the thread context switching overhead?
C++
C
Multithreading
Windows Mobile
Compare using Thread.Sleep and Timer for delayed execution
C#
Multithreading
Timer
Sleep
Delayed Execution
Is the ++ operator thread safe?
C#
Multithreading
Is NodeJS really Single-Threaded?
Multithreading
Architecture
node.js
How can I use threading in Python?
Python
Multithreading
Concurrency
Python Multithreading
C# version of java's synchronized keyword?
C#
Java
Multithreading
Synchronization
MySQL - Persistent connection vs connection pooling
Mysql
Multithreading
Database Connection
How to freeze a popsicle in .NET (make a class immutable)
C#
.Net
Multithreading
How do you stop numpy from multithreading?
Python
Multithreading
Numpy
difference between standard's atomic bool and atomic flag
C++
Multithreading
C++11
Thread Safety
Atomic
In C# would it be better to use Queue.Synchronized or lock() for thread safety?
C#
Multithreading
Queue
Code for a simple thread pool in C#
C#
.Net
Multithreading
Threadpool
Difference between javacore, thread dump and heap dump in Websphere
Java
Multithreading
Websphere
Heap Dump
Thread Dump
Using a global dictionary with threads in Python
Python
Multithreading
How to detect when application terminates?
C#
.Net
Multithreading
Appdomain
Java: Difference in usage between Thread.interrupted() and Thread.isInterrupted()?
Java
Multithreading
Is it possible for a thread to Deadlock itself?
Java
Multithreading
Deadlock
Rmi
Is Cipher thread-safe?
Java
Multithreading
Thread Safety
Encryption
How to start anonymous thread class
Java
Multithreading
Anonymous Class
Multithreaded web server in python
Python
Multithreading
Http
Webserver
What is the difference between atomic / volatile / synchronized?
Java
Multithreading
Synchronization
Atomic
Volatile
What is the correct usage of ConcurrentBag?
C#
Multithreading
Concurrency
Change the connection pool size for Python's "requests" module when in Threading
Python
Multithreading
Python Requests
Request
Connection Pooling
Does any C library implement C11 threads for GNU/Linux?
C
Multithreading
C11
When or why should I use a Mutex over an RwLock?
Multithreading
Rust
Mutex
Readwritelock
Background Thread for a Tomcat servlet app
Java
Multithreading
Tomcat
Differences between Conditional variables, Mutexes and Locks
C++
Multithreading
C++11
Mutex
Condition Variable
threading ignores KeyboardInterrupt exception
Python
Multithreading
Events
Exception
Keyboardinterrupt
What does Apple mean when they say that a NSManagedObjectContext is owned by the thread or queue that created it?
Objective C
Multithreading
Cocoa
Core Data
Why can't we lock on a value type?
C#
Multithreading
Locking
Reference
Difference between AsyncTask and Thread/Runnable
Android
Multithreading
Android Asynctask
Runnable
Android Threading
ThreadLocal & Memory Leak
Java
Multithreading
Memory Leaks
Thread Local
Permgen
RabbitMQ by Example: Multiple Threads, Channels and Queues
Java
Multithreading
Rabbitmq
Messaging
Channel
Why am I seeing multiple "The thread 0x22c8 has exited with code 259 (0x103)." messages
C#
Multithreading
Visual Studio
Exit Code
Thread.sleep inside infinite while loop in lambda doesn't require 'catch (InterruptedException)' - why not?
Java
Multithreading
Lambda
Compilation
Functional Interface
Multi-threaded splash screen in C#?
C#
.Net
Winforms
Multithreading
Splash Screen
Threading vs Parallelism, how do they differ?
Multithreading
Parallel Processing
What's the purpose of Thread.SpinWait method?
.Net
Multithreading
C# : Monitor - Wait,Pulse,PulseAll
C#
Multithreading
Are LinkedBlockingQueue's insert and remove methods thread safe?
Java
Multithreading
Concurrency
Synchronization
Confused, are languages like python, ruby single threaded? unlike say java? (for web apps)
Java
Python
Ruby
Multithreading
Processes, threads, green threads, protothreads, fibers, coroutines: what's the difference?
Multithreading
Concurrency
Process
Parallel Processing
Fiber
How can I pass a parameter to a Java Thread?
Java
Multithreading
What is "Linearizability"?
Multithreading
Concurrency
Parallel Processing
Thread Safety
Why can't we use a dispatch_sync on the current queue?
Objective C
Multithreading
Objective C-Blocks
Grand Central-Dispatch
std::this_thread::yield() vs std::this_thread::sleep_for()
C++
Multithreading
C++11
C# lock statement, what object to lock on?
C#
Multithreading
Locking
Can you perform multi-threaded tasks within Django?
Python
Django
Multithreading
If async-await doesn't create any additional threads, then how does it make applications responsive?
C#
.Net
Multithreading
Asynchronous
Async Await
Are C/C++ fundamental types atomic?
C++
C
Multithreading
Atomic
ANR with blocked HeapTaskDaemon thread
Java
Android
Multithreading
Why don't compilers merge redundant std::atomic writes?
C++
Multithreading
C++11
Compiler Optimization
Stdatomic
Why can't we call Thread#sleep() directly inside a Lambda function?
Java
Multithreading
Lambda
Java 8
Threaded Django task doesn't automatically handle transactions or db connections?
Python
Database
Django
Multithreading
Transactions
How do you query a pthread to see if it is still running?
C
Multithreading
Concurrency
Pthreads
Destructor
How to close a thread from within?
Python
Multithreading
Why are most UI frameworks single threaded?
Android
Multithreading
Swing
User Interface
Haskell lightweight threads overhead and use on multicores
Multithreading
Haskell
Concurrency
Multicore
Lightweight Processes
Difference between manual locking and Synchronized methods
C#
.Net
Multithreading
Locking
What does `std::kill_dependency` do, and why would I want to use it?
C++
Multithreading
Memory Model
C++11
ExecutorService vs ThreadPoolExecutor using LinkedBlockingQueue
Java
Multithreading
Executorservice
Blockingqueue
Threadpoolexecutor
Thread.Sleep vs Task.Delay?
C#
Multithreading
.Net 4.0
.Net 4.5
C++ Threads, std::system_error - operation not permitted?
C++
Multithreading
C++11
Std System-Error
The application called an interface that was marshalled for a different thread - Windows Store App
C#
Multithreading
Xaml
Windows Store-Apps
How to avoid Not on FX application thread; currentThread = JavaFX Application Thread error?
Multithreading
Javafx
Javafx 8
Javafx 2
Synchronising twice on the same object?
Java
Multithreading
Synchronization
Mutex
Double-checked locking in .NET
.Net
Multithreading
Paradigms
Double Checked-Locking
Is PHP thread-safe?
Php
Multithreading
Thread Safety
What is the easiest way to parallelize a task in java?
Java
Multithreading
Parallel Processing
How do I get the UI thread's Dispatcher?
Wpf
Multithreading
Dispatcher
C++0x thread interruption
C++
Multithreading
C++11
Thread safe logging class implementation
C#
Multithreading
Logging
Thread Safety
threading.Condition vs threading.Event
Python
Multithreading
Concurrency
Condition Variable
Is Pthread library actually a user thread solution?
Multithreading
Pthreads
Kernel
What operations are atomic in C#?
C#
.Net
Multithreading
Atomic
Why to use Handlers while runOnUiThread does the same?
Android
Multithreading
Android Asynctask
Handler
Is ConcurrentHashMap totally safe?
Java
Multithreading
Synchronized
java.util.concurrent
Parallelism in Julia: Native Threading Support
Python
Multithreading
R
Parallel Processing
Julia
Thread.stop() - deprecated
Java
Multithreading
Why is node.js asynchronous?
Javascript
Multithreading
node.js
Asynchronous
Synchronous
Concept behind putting wait(),notify() methods in Object class
Java
Multithreading
Wait
Notify
What's the difference between synchronous and asynchronous calls in Objective-C, versus multi-threading?
Ios
Objective C
Multithreading
Asynchronous
Grand Central-Dispatch