Top "Multithreading" questions

For questions regarding multi-threading, the ability of a computer or a program to perform work concurrently or asynchronously by utilizing multiple concurrent streams of execution (generally referred to as threads).

What is the purpose of Looper and how to use it?

I am new to Android. I want to know what the Looper class does and also how to use it. …

android multithreading android-looper
iOS start Background Thread

I have a small sqlitedb in my iOS device. When a user presses a button, I fetch the data from …

objective-c ios multithreading uikit core-foundation
How to wait for a number of threads to complete?

What is a way to simply wait for all threaded process to finish? For example, let's say I have: public …

java multithreading parallel-processing wait
How should I unit test threaded code?

I have thus far avoided the nightmare that is testing multi-threaded code since it just seems like too much of …

multithreading unit-testing
Waiting on a list of Future

I have a method which returns a List of futures List<Future<O>> futures = getFutures(); Now …

java multithreading future
Why is lock(this) {...} bad?

The MSDN documentation says that public class SomeObject { public void SomeOperation() { lock(this) { //Access instance variables } } } is "a problem if …

c# multithreading locking
What resources are shared between threads?

Recently, I have been asked a question in an interview what's the difference between a process and a thread. Really, …

multithreading process operating-system
How to check if Thread finished execution

I have following problem: I want to check (C#) if a thread has finished execution, i.e. if the thread …

c# multithreading thread-state
How to synchronize a static variable among threads running different instances of a class in Java?

I know that using the synchronize keyword before a method brings synchronization to that object. That is, 2 threads running the …

java multithreading synchronization class object
Is there a way of setting culture for a whole application? All current threads and new threads?

Is there a way of setting culture for a whole application? All current threads and new threads? We have the …

c# multithreading cultureinfo