Questions tagged as 'hilos'

2
answers

violating the core using C threads

This is the process that is loaded in several threads void *recorreNumero (FILE *entrada, char nomT[], int numT){ int t = 0, numero = 0 ,primo = -1; char linea[13]; FILE *salida; rewind(entrada); fgets(linea,sizeof(linea),entrada); sali...
asked by 03.11.2017 / 19:32
1
answer

C # subprocesses and forms

When running a Thread whose method at the end opens a new form, does it not remain open? var thread = new Thread( () => grafica(edad,años)); thread.Start();' I did this and if you open the new form but only for a few milliseconds,...
asked by 28.06.2017 / 04:20
2
answers

I use a Thread Runnable or an Intent Service?

when we use for example new Thread(new Runnable() { public void run() { try { DatagramSocket clientsocket= new DatagramSocket(5005); byte[] receivedata = new byte[30];...
asked by 12.06.2017 / 19:04
1
answer

Android, AsyncTask or Runnable threads

I'm going to start chopping code referring to threads in java so that I can make a series of web requests. Stock stock = null; try { stock = YahooFinance.get("YHOO"); } catch (IOException e) { e.printStackTrace();...
asked by 05.05.2017 / 13:13
1
answer

Error ProgressDialog along with threads on Android

I have the following structure in my class: public class Registro extends AppCompatActivity { private ProgressDialog progressDialog; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentV...
asked by 20.04.2017 / 17:33
2
answers

Threading of threads in Java

I'm testing threads in Java and I've stayed in a part where I do not know how to continue. The problem is this: I have 3 threads running and I would like to know how I can stop the second thread only if the first thread is suspended. The part...
asked by 30.05.2016 / 20:21
1
answer

Problem with java threads

I'm not sure how to get something like this to appear when I run:    Thread1 is running task 1   The main (parent) thread has finished its execution   Hilo1 is running task 2   Hilo1 is executing task 3   Hilo2 is running the task 1   Hi...
asked by 18.10.2018 / 13:20
1
answer

How to change a text dynamically in kivy, python from a thread

I am trying to change the text of a stringProperty from a thread but I do not know how to access the string property from the thread This is the thread: def worker(): dev = InputDevice('/dev/input/by-id/usb-Logitech_USB_Keyboard-event-k...
asked by 11.06.2018 / 13:10
1
answer

threads in PyQt - TypeError: function () missing 2 required positional arguments:

Good afternoon, I hope someone can help me with this error: The code is executed but it throws me an error: from PyQt5.QtWidgets import QMainWindow,QApplication, QTableWidgetItem from PyQt5 import uic import firebase_admin from firebase_admin...
asked by 20.07.2018 / 07:52
1
answer

concurrency java threads

I'm playing the thread theme in java and I'm doing some checks. I want to extract and enter the letters in the pipeline array two by two in a concurrent way and that every time that letters enter or exit I indicate the ones that come out and how...
asked by 30.10.2018 / 11:20