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

Service vs IntentService in the Android platform

I am seeking an example of something that can be done with an IntentService that cannot be done with a …

android multithreading android-service android-intentservice
What is a mutex?

A mutex is a programming concept that is frequently used to solve multi-threading problems. My question to the community: What …

multithreading concurrency mutex
How do servlets work? Instantiation, sessions, shared variables and multithreading

Suppose, I have a webserver which holds numerous servlets. For information passing among those servlets I am setting session and …

java multithreading servlets session-variables instance-variables
The difference between the Runnable and Callable interfaces in Java

What is the difference between using the Runnable and Callable interfaces when designing a concurrent thread in Java, why would …

java multithreading interface runnable callable
Using module 'subprocess' with timeout

Here's the Python code to run an arbitrary command returning its stdout data, or raise an exception on non-zero exit …

python multithreading timeout subprocess
java.lang.OutOfMemoryError: Java heap space

I am getting the following error on execution of a multi-threading program java.lang.OutOfMemoryError: Java heap space The above …

java multithreading out-of-memory heap-memory
Is there an advantage to use a Synchronized Method instead of a Synchronized Block?

Can any one tell me the advantage of synchronized method over synchronized block with an example?

java multithreading concurrency locking synchronized
Task vs Thread differences

I'm new to parallel programming. There are two classes available in .NET: Task and Thread. So, my questions are: What …

c# .net multithreading task
Running code in main thread from another thread

In an android service I have created thread(s) for doing some background task. I have a situation where a …

java android multithreading android-handler
The calling thread cannot access this object because a different thread owns it

My code is as below public CountryStandards() { InitializeComponent(); try { FillPageControls(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Country Standards", MessageBoxButton.…

c# wpf multithreading backgroundworker