Questions tagged as 'thread'

2
answers

Use spring-boot and @component with @scheduled and it hangs every 12 hours

I have a project done with JHipster. It uses spring-boot. I use this application as an ordering platform where I use several webservices from an ERP and also synchronize the data with android devices in the mobile version of the platform. To...
asked by 02.02.2017 / 19:06
1
answer

Difference between Task and Thread

I need to create a C # executable and I have the doubts: Do with thread or do with task ? In practice is there any difference between using Task and the "traditional" multi-thread ?? Is it true that a task...
asked by 13.04.2016 / 18:57
0
answers

Theoretical question - Lock Thread is closed

What can happen in terms of failures when a thread that is blocked, made I / O or is in a mutex for example , is it closed? I only encounter practical issues with how to close a blocked thread .     
asked by 17.10.2016 / 22:00
1
answer

Second Web Service response still has the value of the first

The first thing I do in my application is to send a message to the server, just to test if the connection is up and running. When I receive "ok" from the server I continue the application. On the next screen I have to show a list of names, so...
asked by 23.07.2016 / 17:05
0
answers

Using TIdHttp and TIdConnectionIntercept created in runtime [closed]

I have a method that makes a connection to a RestFUL server and for that it uses the components TIdHttp, TIdConnectionIntercept and others created in runtime, so alright, the problem is that I need to get the return of the "OnReceive" event of t...
asked by 29.04.2016 / 22:06
0
answers

Thread Synchronization in python

I'm doing a program that should simulate file synchronization between two threads, but I do not know much about the python language. I've already created threads, lock methods, and files. However I can not make the run select a file at the sourc...
asked by 27.04.2016 / 15:44
1
answer

Difficulty creating threads

I'm trying to create a Thread. But I'm a beginner on the subject. Can someone point to where my code is wrong. Not working Procedure TFormPrincipal.ButtonCompartilharProxClick(Sender: TObject); begin ButtonComp_Voltar.Enabled := False;...
asked by 26.03.2016 / 07:11
1
answer

Replicate message to all clients of a chat [closed]

I need to replicate a client's message to everyone who is logged in, except the client that sent it. Below are the classes I have so far. How could you replicate these messages? public class Servidor { public static final int porta = 4444;...
asked by 16.01.2016 / 10:00
3
answers

How do I access a private attribute of a class in another class?

I created a chat in Java. In the Servidor class, the user passes as input the port on which the server will roam. In order for the chat to work correctly, I need to access this variable of class Cliente , passing it as a parameter s...
asked by 21.11.2015 / 05:26
1
answer

Is there a way to kill a thread in Python?

Is there any way to stop a thread in python? And is it a bad practice to do this?     
asked by 20.10.2015 / 02:32