Questions tagged as 'thread'

0
answers

Problem closing application with thread inside a component

I'm developing a component (visual indicator) that for searching the data in the Database and generating the indicator itself uses a Thread. This thread is inside the component itself. It works fine, except when I close the application and Threa...
asked by 21.07.2016 / 15:39
1
answer

Problem with file transfer via socket with java

I'm trying to make a client / server program that accepts more than one client and that client sends files to the server. The transfer was working correctly, however when I put a while so that when sending once it might give the option to send a...
asked by 31.07.2016 / 05:40
0
answers

How to keep the context of a List off the Thread

I wanted to load the list on the Thread and then have access to it after the action ends. It has this code but at the end of the thread the list is null; Would anyone have a tip to help me? public class ThreadListarClientes { private...
asked by 02.06.2016 / 20:39
1
answer

Terminating two threads with ProgressBar in C #

I'm doing a ProgressBar of file conversions, with each converted file, it is updated to ProgressBar with a percentage of the total files to be converted. I read in a Tutorial how to do ProgressBar , work with Threads...
asked by 15.04.2016 / 18:11
0
answers

php class Singleton of thread type

I have a class that accesses the service layer of my application. This class is a singleton. Through the service, it accesses the data evenly, so that my application has the expected behavior. The problem is, I see the need for my class to also...
asked by 10.03.2016 / 21:29
1
answer

Socket / Threads (Java Client / Server)

I have a very cruel question. I have looked a lot and found nothing similar to solve my case. What I need is the following:    Customer side sends card number and purchase value    The server side receives this data and queries the da...
asked by 15.03.2016 / 19:55
1
answer

Allow only one instance

How do I make my application run only 1 instance at a time? void Main(string[] s){ //faz algo }     
asked by 12.12.2015 / 18:54
1
answer

How to pause a progress of a Notification?

There is a ProgressBar in my notification that works like this: new Thread( new Runnable() { @Override public void run() { int incr; // Do the "lengthy" o...
asked by 31.12.2015 / 05:10
2
answers

How to retrieve the return result of a routine from within a Thread?

I need to run a routine inside a Thread, and get the return of this method. My code is this way. class Main { public static void main(String[] args) { String resultado = ""; Thread t = new Thread() { @Override...
asked by 03.07.2015 / 12:39
0
answers

java.lang.RuntimeException: Can not create handler inside thread that has not called Looper.prepare ();

What should I do to solve this problem? private void callServer(final String method, final String data){ new Thread(){ public void run(){ asw = Connection.getSetDataWeb("http://192.168.1.20/renan/process....
asked by 22.05.2015 / 19:41