Questions tagged as 'thread'

1
answer

Java: Problems with wait () and notify ()

Good evening, I'm doing a java project where I make connections between the client and a server. This client sends messages to another recipient. It is up to the Server to handle this message, forwarding it to the right Client. I am an error:...
asked by 05.12.2015 / 22:50
1
answer

C # Threads How to optimize a SELECT with BLOB

I have a C # application (.Net 4.5) that when loading a screen among other operations it searches the database for a background image and sounds. It turns out that for some loaded screens this operation (search for images + sounds) takes 29 seco...
asked by 16.04.2015 / 17:09
1
answer

Ping - save positive results to a list

I have this code, it works fine, but the problem is that I would like to save the successes (ping with return) in a list , but I do not know how to do this trace successes / failures. > import subprocess import threading def pinger_menager():...
asked by 25.03.2015 / 19:43
1
answer

Access a method that is out of thread

I have a video running in my application and a Thread running a Socket (server), all within the same class, but I need this Thread to access a method that is outside of it. To be more exact I want to run getCurrentTime () to get the current t...
asked by 16.05.2017 / 19:59
1
answer

How to pass parameters to run on a Delphi thread

I am having difficulty assigning a value of a variable within the Execute of a Thread. I need to assign a value to the Name variable through FName that is within a thread's execution. Here's an example I'm trying to do. program Proje...
asked by 07.02.2017 / 21:10
1
answer

What happens after the wait synchronization?

See these two codes on separate threads Thread A synchronized(objeto) { while(condicao) objeto.wait(); //operações } Thread B synchronized(objeto) { condicao = false; objeto.notify(); //operações } Will o...
asked by 06.03.2017 / 14:55
1
answer

Run Java Method from Time to Time - Run Periodically

How do I execute a method of a Java class from x in x time in WebLogic? From what I've been checking, there's the possibility of using the @Schedule annotation in the (Java EE 6) method. But as I'm using Java EE 5, this annotation does not wo...
asked by 02.06.2015 / 11:59
1
answer

How to use thread in JavaFX?

Before the main scenario of my JavaFX application appears, I want a class containing a presentation to appear; I can not use the sleep method. A% blank% appears and then the class containing the presentation. I want the presentation windo...
asked by 23.04.2015 / 23:27
1
answer

Process.WaitForExit dynamic

I wonder if there is any way to know if the process came out, even while continuing project execution. When you use Processo.WaitForExit it to the application, its execution is stopped. I would like to know if there is a way to use...
asked by 25.05.2015 / 21:31
1
answer

Restart the requestLocationUpdates () with Sleep

How do I start requestLocationUpdates() with Thread.sleep(); on Android ? My code: public void onLocationChanged(Location loc) { Date d = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:...
asked by 21.04.2014 / 13:55