Questions tagged as 'hilos'

1
answer

Structure on Threads in Java Swing

I make my first consultation available and in advance I appreciate the future answers. To start I have a form that contains 2 jcombobox : jcbSerie and jcbPartido . The form integrates Runnable() In the form varia...
asked by 24.05.2018 / 16:37
1
answer

Is it possible for a subprocess to end the parent process?

The problem is as follows. I have a thread that connects to a Telnet, the problem is that sometimes the telnet is stuck, or the connection is lost momentarily and the program that connects with the telnet is pointing to nothing. The proble...
asked by 06.02.2018 / 17:46
3
answers

Differences between fine grain and coarse grain

I have read numerous documentations about the differences between fine grain and coarse grain parallelism, but I do not get to understand it very well, here is an example of what I have seen:    "An application shows fine grain parallelism i...
asked by 21.11.2016 / 19:06
1
answer

Apply MultiThreading (Parallelism) to my Scraping code in C #

I need help to speed up the scrape process I've done. Currently I do everything I wanted without applying threads, I need it so that while I go through a page getting information, another process go ahead with other pages and so on. Here is m...
asked by 01.05.2018 / 17:06
2
answers

how can I program thread in my android application?

As I can program with threads I am new in android studio and I do not know how to implement them because when using locates with gps my application becomes very slow, this is the code I use for the location /* Use the LocationManager class to...
asked by 08.10.2016 / 23:04
2
answers

How to leave a service running in the background on Android by closing the application that starts it

From an Android application I create and execute a service that runs on a thread and runs in the background, but when the main application is completely closed, the service also dies. The thread I think I declare as Daemon but still "kill" th...
asked by 25.05.2017 / 13:39
1
answer

C # Threads error the process can not access the file because that being used in another process

I am working on C # with threads but I can not print them in a txt because the error occurs:    The process can not access the file   'C: \ Users \ wuesi \ Desktop \ Data.txt' because it is being used in   another process System.IO.IOExceptio...
asked by 03.06.2018 / 00:20
1
answer

I get the message: "the application may be doing too much work on its main thread", using Retrofit with Android [closed]

Good I have this method to get the response: public void cargarFilas(String filtro){ OkHttpClient okHttpClient = new OkHttpClient.Builder() .addNetworkInterceptor(new StethoInterceptor()) .build(); Retrofit re...
asked by 05.05.2017 / 20:44
2
answers

Reading data from the serial port hangs my GUI

I'm doing an access control application in Python. I have a window in PyQt5, which has a running clock and a connection to an Arduino, which is the one that will read a card through its corresponding NFC. The fact is that for the two tasks (c...
asked by 07.07.2018 / 21:56
1
answer

Kill a thread on Android onBackPressed ()

I am trying to kill this thread as soon as I press the back button. But in "HiloConsumo" it does not pick up the reference of the thread new Thread("HiloConsumo") { public void run() { while (true) {...
asked by 17.05.2017 / 21:51