Questions tagged as 'hilos'

1
answer

Swift. Thread running even while being in other apps

I need to keep a thread running even when the user is inside another application. I tried the following thread that works only if I keep the application visible, once I press the home button, the thread is paused. func prepareSync() { Disp...
asked by 12.11.2016 / 20:55
2
answers

How to change label text with delay and in another thread?

As the question correctly says, I need to change the text of 4 different labels without the view being left without being able to process other processes and also between these changes of text I need a delay of at least 1 second. I already try t...
asked by 24.05.2016 / 22:43
0
answers

How can I divide elements of an array to distribute it in 4 threads?

Before telling you what I have developed so far, I explain what I intend to do. I am experimenting with threads and create a method to process files (in total there are 3,000). With only one thread the process is a bit slow ... so I decided to t...
asked by 30.12.2018 / 06:13
1
answer

Timer error made with java

I was doing a program in java and in this I need a timer that can run on multiple occasions without closing the program however I only get it to run once before I miss an error, in the code I use 2 Timer of the class java.util.Timer and two Time...
asked by 25.12.2018 / 21:06
0
answers

Java concurrence

How about? I am a student and in one of the subjects that I have (concurrent programming) I am asked to perform an exercise. Which says that a series of threads (cars) come to a river and get on a boat (another thread) this boat crosses them fro...
asked by 17.11.2018 / 21:23
1
answer

Problem Thread Synchronization

I have a problem with the synchronization of threads in java, I comment. I am trying to make a program such that I have an array of threads and I execute them all at the same time and whose only function is to move the position of a JLabel as...
asked by 25.11.2018 / 22:53
0
answers

Synchronized threads in JAVA

How can I make thread 1 when it reaches 10 or more, go to thread 2 and when it finishes adding its 5 numbers it will return to thread 1 to continue its series in case it has not finished yet? THREADS package pruebahilos; public class Hil...
asked by 21.10.2018 / 21:28
1
answer

Method that in visual basic does not take parameters as it is done in C #

I'm doing the following code conversion from vb .net to c # Thread hilo = new Thread(AddressOf ConcatenarArchivosHilos); hilos.Add(hilo); where ConcatenarArchivosHilos has a parameter of an integer array Private Sub Concatenar...
asked by 18.10.2018 / 21:12
1
answer

Run with Java threads

I am looking for a way to run the following two lines of code with threads in parallel. I have seen some options, but they all go through to create a class Thread , but I can not create the class in this case. I'm not sure how I can create...
asked by 10.10.2018 / 16:31
0
answers

Run sequentially Fragments-Android operations?

I have a question, I hope you can help me, I have a graphical interface that works with a library that loads several fragments simultaneously more or less of this type, that is, it does not wait for the click event to load the "tabs" th...
asked by 26.09.2018 / 02:09