Questions tagged as 'hilos'

1
answer

generate an asynchronous task and return sight without waiting for it .net

I am wanting to perform an asynchronous method but I have the problem that, although it is performed asynchronously, it does not return the value until it does not end. I need you to return your sight and continue even if the task is not finishe...
asked by 01.06.2016 / 00:06
2
answers

Backup scheduled with timer, Threads and Delegates VB.NET

I have a system on vb.net which has the function HacerBackup() that is activated with a button and saves a backup of the database on a removable device. Then the client asked me to make automatically certain days every certain time a...
asked by 30.05.2016 / 22:46
1
answer

Wait for the Thread process to finish in order to destroy the activity

Emmmm, well, hello, it's me again, well I've been researching all over the internet how to solve this problem and until now I do not know how to solve it, the question is simple. How to wait for a thread to be processed in order to destroy the A...
asked by 10.08.2016 / 04:01
1
answer

Array overflow

I have this overflow problem in an array that I have within several objects.    java.lang.ArrayIndexOutOfBoundsException: 7       at Exercise.Visiting.run (Visitor.java:73) The code public class Visitor extends Thread { private String...
asked by 18.12.2016 / 04:30
3
answers

Error creating thread in c ++

I'm trying to create a thread in c ++, but my code does not compile. void Programa::ordenUnoParelelismo() { std::cout << "<<-- ALGORITMO UNO PARALELISMO -->>" << std::endl; int hilos = intInput("Ingrese numero d...
asked by 08.12.2017 / 13:55
2
answers

How to display a message with Toast within a Thread in Android Studio?

It turns out that when I want to show a message through Toast and send it the context I get an error, I do it like this: public void mostrarMascotas(){ new Thread(new Runnable() { @Override public void run() {...
asked by 24.04.2017 / 22:18
1
answer

Call a function every x seconds

I'm doing a console application in VS2008. I have a function that I have to call it every 5 seconds, but until those 5 seconds pass the program has to keep running. I have tried to use thread, but I can not include it because my version of c ++...
asked by 17.07.2017 / 11:44
2
answers

Synchronize threads in Java

I have an exercise of threads to record and read a text file in Java, but what I do not get is that the threads are synchronized. In the way I have it, the threads interfere with each other, and at the time of writing in the file the thread for...
asked by 11.11.2017 / 15:04
1
answer

Problem with ExecutorService

I'm doing a project in which I'm going to do a large number of operations that can be done simultaneously, so I thought about creating threads. These operations will give a result that I want to store in a list so that when they finish execut...
asked by 26.05.2017 / 13:22
4
answers

Thread / Runnable

I would like to know how to perform some action every 10 seconds, specifically call from main to my method msj() every 10 seconds using the class Thread and I would also like to know how it would be done using the interface...
asked by 27.03.2017 / 21:42