Questions tagged as 'hilos'

0
answers

Simple threads in Java with files

I have some text files what they are going to have is simple formulas like 2 + 2, 6 * 90, etc. Each file has to be read by a thread (for each file we will create a thread) that will be responsible for reading the contents of the file and perform...
asked by 23.02.2018 / 20:59
0
answers

Read files Callable Java Interface

I need to read certain files that are in a folder, each file has an operation for example 2 + 2, and when you finish that you can read the result, perform the operation and show your result in the console as something like this Archivo1 2+2 4...
asked by 23.02.2018 / 20:10
1
answer

Threads when looking for files recursively java

I am trying to get the files and folders recursively in an ArrayList using threads, since the program if what I'm looking for has many files and directories remains frozen until it ends and I do not know very well what I have to do, this is the...
asked by 22.02.2018 / 21:01
1
answer

Does Point Class accumulate Ram Memory with each New C #?

I have a problem. I'm doing a simple game which consists of moving a picturebox every time I press a key and to move the PictureBox I use: pictureBox1.Location = new Point(pictureBox1.Location.X+10, pictureBox1.Location.Y); And I've noticed...
asked by 04.02.2018 / 18:28
0
answers

threads in two jinternalframes

I have a jinternalframe that processes the number of products import and iva and register them in the database for the order, but this must be done when the purchase ends in a second jinternalframe that processes the payment this second receives...
asked by 01.02.2018 / 19:59
1
answer

I throw an executor but only one thread is executed

My question was that when trying to do a function with an executor (in this case, a multiplication of matrices) and when checking the thread that was in the run, it always came out the same, 12. /* Atributos de la clase */ public int x,y;...
asked by 24.11.2017 / 14:24
0
answers

Concurrent Access to a Session Start, is it recommended to use Threads?

I have a question, I hope you can help me, thanks in advance. I am working on a project, a WEB application hosted on IIS;  the approach is that I have a LogIn for the users, but the LogIn must allow a user to log in at the moment, so if two u...
asked by 06.11.2017 / 17:01
1
answer

JavaFX How can I move controls around the screen? With a separate threads

I am looking for some advice or correction, since I am trying to create a program (which is a practical exercise) that consists of simulating a horse race with bets. This race is made up of 3 horses (images), each of them has to move at the s...
asked by 09.11.2017 / 20:53
0
answers

The program stops when it arrives at .wait ()

The thing is that the execution of the threads of my program stops when it reaches the wait (), having a notify () after ... package supermercado; import static java.lang.Thread.sleep; import java.util.ArrayList; import java.util.Scanner; imp...
asked by 26.10.2017 / 16:10
1
answer

How can I stop a thread using a procedure in C

Assuming I have a program that requires me to use several hilos and in those hilos load the same process Is there a way that when the process ends the hilo in which it is loaded will be paused? Example: void *recorre(ch...
asked by 02.11.2017 / 20:50