Questions tagged as 'thread'

2
answers

What does a "Thread Safety" class mean?

According to MSDN a WebApp Class (Microsoft.Owin.Hosting) is Thread Safety . What does this mean exactly? This class specifically has a method Start that:    Start a web app .... Would every request to this app...
asked by 26.07.2015 / 22:18
1
answer

Are there differences between the terms Thread, Multithread, Async, and Await?

I asked this question here in Stack Ooverflow: What is the solution for asynchronous processes in PHP? I did this because I wanted to, in the middle of a process execution, want to have a certain call of a function running on the other p...
asked by 29.05.2017 / 13:35
1
answer

Report progress for interface of an asynchronous method in C #

I have a Windows Forms application. This application will run some processes that take a while to run, so I would like to run them in parallel. Here's a little of what I'm trying to implement. In the form constructor, I create a generi...
asked by 09.09.2014 / 19:53
2
answers

Abort Thread through another process in C #

I'm developing an application in ASP.Net 5.0, where it needs to start a task through a% Secondary% co, as in the example below: //Inicia processo de pesquisa var ppBlo = new ProcessoPesquisaBLO(); //Cria a Thread para rodar o proc...
asked by 22.11.2016 / 19:09
1
answer

Some doubts about socket

I'm taking a look at an example from Microsoft itself and I have some questions. Example taken from this link: link Let's imagine a chat environment via socket ... Should I establish a socket connection every time I send a message? Here...
asked by 03.03.2017 / 18:53
2
answers

How to close a JDialog after finishing executing a Thread?

I have a configuration window that opens on the first run of the application I'm developing. After typing the directories that the application will run the user clicks save, some tests are run and finally a Thread runs. I would like to have t...
asked by 15.04.2014 / 18:51
1
answer

Wait for thread to finish before closing program

I have a loop while that ends only when I press the q key, then the program quits. Within this loop , at a certain time or condition, I start a thread that takes a few 10 seconds to execute. My problem is, if I exit the loop...
asked by 26.03.2015 / 16:02
1
answer

Task.Run always starts a new Thread?

When executing a list of tasks started through Task.Run, is it guaranteed that each one is executed on a different Thread? When reading the documentation, it seems to me that this is the default behavior, while doing the tests I was validatin...
asked by 10.08.2016 / 21:43
2
answers

Is it possible to pass a method as a parameter to run in a thread?

I have an application where each process is called by a single method and this process needs to be executed on a thread. The threads code is identical in all, changing only the content of the run () method. I would not want to be copying and p...
asked by 31.08.2016 / 08:09
1
answer

Finding Active Threads

I have the following problem, where I have a for() that opens 17 threads and need to retrieve, in another thread (18th) the active threads I opened earlier and check which ones are still active. I took a look around the internet, but I di...
asked by 20.04.2016 / 19:05