Questions tagged as 'hilos'

1
answer

Thread, listbox and an infinite loop [closed]

I try to make a windows desktop application in C # and what I'm trying to do is have a button that activates a thread that shows an infinite loop in a listbox that can be stopped with another button, I'm new to threads so I do not know how to st...
asked by 16.07.2018 / 21:52
1
answer

Timer while the program is running in C ++ Using Threads? [closed]

I turn to StackOverflow, because I can not find explanatory material about the programming of Threads in C ++ . The fact is that I'm doing a game and I need to show the player a timer in a part of the screen as the user is playing, so he k...
asked by 14.06.2018 / 22:20
1
answer

Execution of a thread, after another [closed]

I have two threads, and I need the one to start, when the first one ends. How could I do it? I have tried something, in the second thread, the one that I want to run after the first one, I put thread2.join (); . I do not know if that will work,...
asked by 10.06.2017 / 19:39
2
answers

Exception when calling a Thread from another class

I have a THREAD created in my MainActivity (called Menu_Main) and I want to pass it to my class (Cls_Logeo) where I log in to connect through a Switch, but clicking on the switch generates an error, I followed my Time_Stop and it shows me null,...
asked by 26.07.2018 / 16:09
1
answer

Sort the output order of an array

Hi, I'm stuck in some parts of my program and now I have the next part of my program: public class Relleus { public static void main(String[] args) throws InterruptedException { Testimoni c = new Testimoni(); int numMembres = 5; //la...
asked by 13.03.2018 / 17:55
1
answer

Java Threads Test (elementary) does not seem to work correctly

This is a thread synchronization test and the output I get is this: The code I am using is this: compartirinf.java package cuenta; public class CompartirInf{ // Esto es el programa principal public static void main(String[] args){...
asked by 08.11.2017 / 18:13