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

Returning value from Thread

I have a method with a HandlerThread. A value gets changed inside the Thread and I'd like to return it …

java android multithreading
Show ProgressDialog Android

I have an EditText which takes a String from the user and a searchButton. When the searchButton is clicked, it …

android multithreading progressdialog
python multithreading wait till all threads finished

This may have been asked in a similar context but I was unable to find an answer after about 20 minutes …

python multithreading
ExecutorService, how to wait for all tasks to finish

What is the simplest way to to wait for all tasks of ExecutorService to finish? My task is primarily computational, …

java multithreading threadpool executorservice
How do I terminate a thread in C++11?

I don't need to terminate the thread correctly, or make it respond to a "terminate" command. I am interested in …

c++ multithreading c++11
How do synchronized static methods work in Java and can I use it for loading Hibernate entities?

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

java multithreading hibernate concurrency synchronization
How many threads can a Java VM support?

How many threads can a Java VM support? Does this vary by vendor? by operating system? other factors?

java multithreading
How to get thread id from a thread pool?

I have a fixed thread pool that I submit tasks to (limited to 5 threads). How can I find out which …

java multithreading threadpool executorservice executors
How to know if other threads have finished?

I have an object with a method named StartDownload(), that starts three threads. How do I get a notification when …

java multithreading
Why is Thread.Sleep so harmful

I often see it mentioned that Thread.Sleep(); should not be used, but I can't understand why this is so. …

c# multithreading sleep