Questions tagged as 'thread'

1
answer

What Threads do you share when making Http calls?

Problem: I can not log in to a site more than once in%% of different%. My application is Threads . If I open multiple executable , each can login successfully on a Console application , only the first . I believe this e...
asked by 26.05.2016 / 01:38
1
answer

Error creating Thread inside a Handler

I need to give a delay of 5 seconds in one of the parts of my application: final Runnable runnable = new Runnable() { @Override public void run() { // Encadeia trabalho serializado jobChain.append(new Job() {...
asked by 16.12.2015 / 21:23
2
answers

Building a web crawler in python. I need help adding threads

I'm trying to develop a web crawler for studies. He is very simple and would like to improve it. How to use threads to speed up / improve the process? The program could make several links in parallel. How to apply the thread concept to the crawl...
asked by 01.08.2016 / 02:28
1
answer

Object Oriented Multithread in C ++ 11 Native?

How is Multithread Orientado a Objetos implemented in C++11 ? in java this is possible through the% Class extension Thread / Implementing the Runnable interface and overriding the Run method of both. In C++11 I...
asked by 01.06.2015 / 14:23
3
answers

I have 5 threads running in parallel. How do I know when it's all over?

If I make a join for each of them, they will run in sequence, one at a time. I needed to start the 5 in parallel and know when they were all done to do something. Does anyone know if and how is it possible? Thank you in advance.     
asked by 17.11.2015 / 15:38
1
answer

Delphi - Make a Thread that plays a song in loop

I managed to make a Thread that plays the song, but only for 1 time.  If I put a loop in it I have several errors, like the 1400. It seems that the thread does not close when Form1 is closed, because the problem always happens when I try to c...
asked by 02.11.2015 / 19:48
1
answer

A little more about File.WriteAllBytes

How to display a progress by synchronizing the following function: File.WriteAllBytes(string path, byte[] content); This method should be called according to a System.Threading.Thread Ex: Thread wnd; string wnd_file; byte[] wnd_...
asked by 29.01.2015 / 22:56
2
answers

How to know when two threads have ended in Swing?

I have a method that performs two tasks. I would like two threads to perform each task. Tasks do not share data, they are completely independent. Before starting the tasks, a dialog is displayed with the "Wait, processing ..." i...
asked by 24.10.2014 / 20:21
1
answer

Code review: Server with threads to handle multiple clients

The server with Threading: import socket from threading import Thread def Servidor(): servidor = socket.socket(socket.AF_INET, socket.SOCK_STREAM) ip = "0.0.0.0" porta = 8884 servidor.bind((ip, porta)) servidor.list...
asked by 09.04.2018 / 19:29
1
answer

Access ListListstring in a Thread

I'm using WinForms I can not access a list within a Thread . This list I already populated it through another method. If you leave the cursor on top I can see the items, but when I recover through lstPublicacoes[0].ToString();...
asked by 05.02.2016 / 23:54