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

Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on

I have a scenario. (Windows Forms, C#, .NET) There is a main form which hosts some user control. The user …

c# multithreading winforms invoke
If statement with String comparison fails

I really don't know why the if statement below is not executing: if (s == "/quit") { System.out.println("quitted"); } Below …

java multithreading if-statement string-comparison
Maximum number of threads per process in Linux?

What is the maximum number of threads that can be created by a process under Linux? How (if possible) can …

linux multithreading
Run certain code every n seconds

Is there a way to, for example, print Hello World! every n seconds? For example, the program would go through …

python multithreading
Multiprocessing vs Threading Python

I am trying to understand the advantages of multiprocessing over threading. I know that multiprocessing gets around the Global Interpreter …

python multithreading multiprocessing
How to get the return value from a thread in python?

The function foo below returns a string 'foo'. How can I get the value 'foo' which is returned from the …

python multithreading
How to pass parameters to ThreadStart method in Thread?

How to pass parameters to Thread.ThreadStart() method in C#? Suppose I have method called 'download' public void download(string …

c# .net multithreading
ThreadStart with parameters

How do you start a thread with parameters in C#?

c# multithreading
What is thread safe or non-thread safe in PHP?

I saw different binaries for PHP, like non-thread or thread safe? What does this mean? What is the difference between …

php multithreading package thread-safety threadcontext
Cross-thread operation not valid: Control 'textBox1' accessed from a thread other than the thread it was created on

I want to send temperature value from a microcontroller using UART to C# interface and Display temperature on Label.Content. …

c# multithreading invoke uart