Questions tagged as 'thread'

1
answer

How to know when a thread has been terminated

I have the following javascript ployment in the call of a Thread . I would like to print in the log the moment the Thread was terminated. It is possible? func4 = { run: function(){ atv4(); } }; r4 =...
asked by 09.03.2017 / 15:37
1
answer

Error Exception in thread "main" in my Array

People, help me, I can not find where the error is in my code. I know this error refers to not having the position in the array to store but I do not know where to fix it. package br.com.fiap.exercicios.lista2.exercicio2; import java.util.Scan...
asked by 26.03.2017 / 22:10
1
answer

Force execution order Swift 3 / Xcode 8 - Threads

Hello, I'm new to swift and this week I came across a problem that is already making me pull out my hair! What happens is the following, divided in my application in several classes to leave my code more "straightened" and in this wave I decided...
asked by 07.02.2017 / 22:06
1
answer

Java: Send message on the network repeatedly in another thread?

This is my problem: I need a message to be sent by a socket repeatedly, to do this, I created another Thread, so that the application would not be locked, so: new Thread(new Runnable(){ public void run(){ try{ Socket s...
asked by 23.02.2017 / 00:59
1
answer

Running a Background Method Asp.Net/C# (Async or Thread)

What I needed to do was the following Call a Post method that is called Cadastrar Before this method finish I would call a new method called PessoaNotificacao However, the Register method would not wait for PessoaNotifi...
asked by 06.01.2017 / 17:35
1
answer

How to use TAnimate in Delphi

Hello, I'm trying to use the TAnimate tool, but it does not have any animation in it, where I researched it says it already comes with the tool. Can you tell me if you have to declare something together? or where can I get these animations? Do t...
asked by 23.09.2016 / 13:42
1
answer

Insert data into a real-time text box with Timer [duplicate]

I'm using timer as follows: System.Timers.Timer aTimer = new System.Timers.Timer(); aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent); aTimer.Interval = 1000; aTimer.Enabled = true; In the OnTimedEvent method I do the...
asked by 20.10.2016 / 13:27
1
answer

error: invalid use of undefined type 'Row struct'

I am implementing a queue to control the threads created, in C . So while the thread is not the first in the queue it waits to be terminated. example: // // Enquanto não é primeira da fila // while(idd != PPFila.dados[PPFil...
asked by 27.07.2016 / 13:15
2
answers

Read multiple lines of a file in parallel with C #

I have a file with almost 700mb that has numerous lines with Json inside it. I need to treat each json line-by-line and insert them into my database. The question is, I'm currently using the following code: using (StreamReader arquivo = ne...
asked by 25.02.2016 / 18:52
2
answers

Delphi - Thread exception handling

I wrote a thread in Delphi with exception handling, but when the exception happens the operation is aborted and does not fall into the except block. Is there any specific handling of exceptions within threads? procedure TThreadEnvioJSONsWS.Exe...
asked by 04.01.2016 / 12:26