Questions tagged as 'hilos'

3
answers

Help c ++ threads Pause and Resume

I'm new to this c ++, this code I did practically with the help of internet pages.  I would like to know how I can pause and resume two threads, that when I start a thread A I reach a point where it stops, then the other thread B starts and reac...
asked by 25.11.2016 / 21:28
2
answers

Multilists linked with ArrayList

I am creating a program that simulates the functioning of a metro network. I have reached a point where I have to create the lines from a graph where I have all the stops and their respective connections. I have considered the option of creat...
asked by 05.12.2018 / 20:40
1
answer

c # error when calling a Thread class from my main class

   The thread consists of moving the gif private void btn_start_Click(object sender, EventArgs e) { if (nuevo == true)//si es la priemra vez que has pulsado el boton { //pedir datos del personaje...
asked by 04.08.2018 / 20:20
1
answer

Multiprocessing with threads in Python

I'm doing a program to process files by thread but I can not get parallelism. In the program I have the following structure for the creation of the threads, but I work one at a time for all cases. import threading import time def main():...
asked by 17.03.2017 / 02:04
1
answer

Concatenate TextView Fixed with String from Android Thread

I have a layout where I have a text set. <TextView android:id="@+id/activityStockValorAnoTop_textView" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Ma...
asked by 12.05.2017 / 10:50
2
answers

Multithreading thread in Java

I have here an exercise called Parking. I understand it slightly, but there is one thing that is not clear to me, and I refer to the parameter that has Semaphore sem = new Semaphore(este_parametro_me_refiero) . I appreciate the help! I lea...
asked by 04.03.2018 / 02:28
1
answer

Help I need to read Java files

Hello! After a long wait at the end, I have to develop a small exercise with Threads. I have a set of txt files with 4 colors in RGB code (red, green, blue), each file contains the rgb colors separated by spaces and the color name: "84 84...
asked by 07.03.2018 / 05:12
1
answer

Traffic light in c # using threads

When I start the thread do not even change the images before I get to the sleep, how do I put the thread correctly, or what change do I need to make it work? using System; using System.Threading; using System.Windows.Forms; using System.Drawin...
asked by 31.10.2017 / 02:49
1
answer

modify behavior of the last thread of a group

I have the following program: public class Corredor extends Thread { Testimoni comandament; static int canal; public Corredor(Testimoni c) { comandament = c; canal = 0; } @Override public void run() {...
asked by 13.03.2018 / 13:28
1
answer

How to synchronize C threads with OpenMP

I have this code that tries to make a Geometric Series using OpenMP, but in the end it does not get the same result as when it is executed sequentially. #include <omp.h> #include <stdio.h> #define LIM 1000000000 int main(void) {...
asked by 04.05.2017 / 06:10