Questions tagged as 'hilos'

1
answer

Problem when doing an exercise with threads in Java

Good, today started with threads and I am a little lost, I made the following code to make a program with two threads of name "HiloUno" and "HiloDos" so that each of them visualize the first 10 natural numbers . But I think I've got it wrong....
asked by 26.10.2017 / 21:50
3
answers

How to stop scheduleTaskExecutor process?

Good afternoon! I'm working with Executors, I have a button that when pressing it makes a toast every 5 seconds, my question is if there is a way to kill that process by pressing the button again. I read that with future.cancel() but I...
asked by 05.12.2017 / 18:11
1
answer

System.InvalidOperationException working with threads

The code is as follows, below the explanation .. Thread hilo = new Thread(NuevoHilo); hilo.Start(item); private void NuevoHilo(object item) { rtxMensajes = new Mensajes().NuevoMensaje(rtxMensajes, item.T...
asked by 01.10.2017 / 17:41
1
answer

Run the same Java thread twice [closed]

I have a problem and I look for help. I need to execute many times the same thread and I get the error (java.lang.IllegalThreadStateException) Does anyone know any way to do it?     
asked by 09.02.2018 / 18:30
1
answer

3-wire sum

I hope you can help me, I have this thread problem ... Create a program that evaluates    p = Σfrom i = -100 to 100 (sin (i)) + Σfrom i = -100 to 100   of (cosine (i)) + Σfrom i = -100 to 100 of (tangent (i)) For each term in the equation...
asked by 26.10.2018 / 00:46
2
answers

How do I keep my app updated with data from my mysql database?

I have read a lot, researched in several pages but I have not been able to find an answer to my question. I have an application made with PyQt, this same app uploads data to a mysql database and downloads them when you indicate it. But the appl...
asked by 23.05.2017 / 01:30
1
answer

Error Only the original thread that created a view of the hierarchy can touch its views. on Android

After Android-Studio warned me that there is too much load on the main thread.    Skipped 113 frames: the application may be doing too much work on its main thread I have created a runnable to launch a thread with some processes:...
asked by 10.05.2017 / 15:14
1
answer

Update UI inside backgroundworker in endless thread with C # and WinForms

I have an application made in Windows forms that is responsible for searching infinitely in a database for tasks to perform. When I execute the code inside the Constructor of the form, it works but at moments it stops when launching new threa...
asked by 05.07.2018 / 17:17
1
answer

How to free java memory in a thread

I am working on a Java application, it must transfer information from one database to another in a certain time interval. Currently works with an infinite cycle within a thread, because the user needs to open the application and it does not stop...
asked by 04.07.2018 / 23:51
1
answer

Applying Thread Race in an interface (it does not refresh)

I quickly explain what I intend, I have two runners running threads simulating running (sum of random value), it is a thread that executes and must for each iteration of the loop in the thread make a setvalue (distance run-time) in progressba...
asked by 04.05.2018 / 22:49