Questions tagged as 'multithreading'

2
answers

Make one method wait for the other to finish

Good morning everyone, I have the following doubt, when clicking on a button my program does with if you run 2 methods simultaneously, method of sending email, and method of generating the pdf, it happens that the method of sending email always...
asked by 14.03.2017 / 15:29
1
answer

How to make a script in python run two processes simultaneously?

Soon I learned to capture videos through the webcam using Python with the OpenCV library. After that, I had the idea of making a script that automatically starts and stops recording a video. Once the program started, the capture would start, but...
asked by 18.01.2017 / 16:18
2
answers

Use unique identifier timestamp in a PHP process?

Here's the scenario: A trading site that handles many transactions per second. It is hosted on high-performance multi-core computers at AWS. The time() of php function is being used to generate a unique transaction identifier. I...
asked by 04.05.2017 / 13:31
1
answer

Download Async + Copy = Copying image 0 bytes

I'm downloading simultaneously multiple photos, and also need to copy to a certain folder. What happens is that it does the copy before finishing the download. public static async Task DownloadData(IEnumerable<FotosProdutos> urls, int...
asked by 14.10.2016 / 16:28
1
answer

Thread - How to use it without freezing screen?

I have a system that traverses some html elements, collecting some links. I would like for a wait time, but whenever I use Thread.Sleep it freezes my program by the time set. I have already used Application.DoEvents (); and Thread.Join and non...
asked by 29.01.2016 / 02:03
1
answer

AsyncTask aborted during execution does not call any of the post-doInBackground () methods

When I cancel my AsyncTask running, it does not update the mAsyncTaskEstaFinalizada flag. Does anyone know what can it be? When I put breakpoints in methods onCancelled() , onCancelled(resultado) and onPostExecute...
asked by 22.05.2014 / 20:52
1
answer

Check C # threads

I'm trying to understand the code below, but to no avail. From what I've researched, GetMaxThreads returns the maximum number of available threads and GetAvailableThreads what it has available. In the case of the output below, is t...
asked by 25.09.2014 / 22:11
1
answer

Information exchange between Python classes

How can I exchange information between two different classes? I need to move data from one to the other. Each class is running in a different process. An example of the structure, the code is too large, so there goes an example, the only diff...
asked by 15.12.2017 / 19:20
1
answer

Asynchronous method blocking Queue

I'm using MVC and then I've addressed asynchronous methods for Actions in Controllers in order not to block access to other pages of the site while a long-running process is taking place. However, I have had problems in the following s...
asked by 06.05.2017 / 05:32
1
answer

How to implement my program in Java to be Multithread? [closed]

My program is not running properly, I can start the server but it does nothing else. I want to be able to write a message in the program and have the same message in response. This is the client code: import java.net.Socket; import java.lan...
asked by 04.12.2016 / 01:04