Questions tagged as 'thread'

1
answer

How to send multiple requests at the same time

Well my program takes URLs from a text file, enters them and checks to see if it has a certain text in its HTML code, it would be possible to read all the lines of the file, and instead of making a request at a time, does it all at once?     
asked by 18.09.2016 / 20:58
1
answer

Thread from a flashing point

Hello, I made a program that you move a ball with the arrow keys that only flashes the screen when it moves. I've seen other programs in this kind of mine that just do not blink. If anyone can help me... (the background stays normal but the ball...
asked by 22.03.2016 / 02:16
1
answer

Error Android Studio 1.5.1

Good night, I'm new with Android development and in my first project I'm getting error the following error "Exception in thread" png-cruncher_20 ", below it follows the complete error log, could anyone help me? > 'Executing tasks: [:app:gen...
asked by 15.12.2015 / 00:49
1
answer

Can not evaluate expression because the current thread is in stack overflow state

You're giving this error:    Can not evaluate expression because the current thread is in stack overflow state in the qtde variable by adding it in the desci list. class descricaoo : IInstrucao { private string...
asked by 29.10.2015 / 17:43
2
answers

Java ScheduleExpression

I am developing a Nobreaks Monitoring Software, I am using ScheduleExpression that runs every 5 seconds, it follows code: @PostConstruct public void agendarMonitoramento(){ System.out.println("=====================================...
asked by 17.11.2014 / 13:24
1
answer

Execute a method with the application closed "Service"

In Android it is possible to send notifications, make queries via http, execute methods, all through a Service without the user having to run the application, just because the service is active, everything happens naturally. I see that in iOS th...
asked by 17.06.2015 / 16:42
1
answer

Access object of a method executed by thread in the background in C # with WinForms

I created a thread to execute a process that takes a lot of time and makes the application process stop for a very long time private void ExeConsultaClientes() { thread = new Thread(new ThreadStart(ExeConsultaClientesst));...
asked by 09.03.2018 / 15:02
1
answer

How to measure times in multi-threaded programs in C

I'm doing a multi threaded work in c, and I need to calculate the time of a certain part of the program, does anyone have any idea how I can do this?     
asked by 26.10.2017 / 15:56
1
answer

Semaphore and Mutex in C

I have the following problem: A lan house with 3 pcs, I will insert an X value in the terminal that will be the number of clients that arrive in the lan house, customers can only use the pcs that are unoccupied, if you are busy go to a waitin...
asked by 29.05.2016 / 00:29
1
answer

AsyncTask Android

I have a "Runnable" method that executes on a new Thread a certain method to update my list. Every time I call this "Runnable", I'm creating a new Thread, which for me is not very positive ... How can I do the same thing using an AsyncTask...
asked by 29.06.2015 / 21:11