Questions tagged as 'thread'

1
answer

View ProgressDialog Spinner?

Well I need to do a long task so I did a ProgressDialog to report such a task, however the spinner that should be appearing seems hidden or something. protected void onPreExecute (){ progress.setProgressStyle(ProgressDialog.STYLE_SPI...
asked by 28.07.2016 / 14:31
1
answer

QT - Display WebCam on a QLabel using another Thread?

Hello, I'm doing a project in C ++ using GUI QT. In the project in question I need to display images of a camera in the window, but in doing so, the performance of the window is very compromised, all other buttons and features that it includes i...
asked by 03.08.2016 / 17:44
1
answer

Competition with thread and database inserting duplicates

I have the following problem with concurrency using Thread. The code below should take the last number of a column of a table and add +1 to save again in the database, the problem is that this number can not be repeated and because of the thread...
asked by 28.04.2016 / 14:50
1
answer

Using threads in C # without storing in variable

If I start an thread anonymously: new Thread(chat).Start(); and then instantiated it in the same way, does it overlap the other thread ? If not, how should you kill the first thread .     
asked by 10.04.2016 / 12:22
1
answer

Doubt about updating JLabel in JFrame

Why can not I update my labelHora in Frame ? Using a print after the line labelHora.setText(x); I noticed that the content of labelHora changes, but the screen continues the default, which in this case is "zzz". package ultili...
asked by 02.12.2015 / 05:51
3
answers

Bucket sort + Thread

I'm having the following error in this code: #define TAM 10000 /*Tamanho do vetor*/ #define NUM 10000 /*base para gerador de numeros aleatorios*/ using std::cout; using std::cin; using std::endl; pthread_t thread[TAM]; void gerarVet(long*);...
asked by 05.11.2015 / 13:42
1
answer

MessageBox with autoclose

I'm having some problems with an application I created, using C# and Windows Forms , and the situation is as follows: The application is a chat. It does not keep track of conversations; When the application is closed I request...
asked by 23.03.2015 / 15:36
1
answer

Thread starts but there is no reaction

I have a small problem that when I start a thread with a normal function the thread tasks are fully completed and the thread is over! But I need to start a thread which causes a WebBrowser to load the page without the window loc...
asked by 31.01.2015 / 00:32
1
answer

Critical section problems in concurrent programming

I'm implementing in C ++ a system with threads using semaphores. I am with a doubt, if I treat the progress situation, will I guarantee 100% that my implementation will not occur any impasse? Or do I need to be careful about something else?    ...
asked by 12.11.2014 / 13:54
1
answer

How do I use threads or something similar in this code?

I was going to need to use the Threads (or something that does not crash the program while the code does not finish) in this code, but it always gives a different error, so I need your help. I was starting the action with a button. P...
asked by 14.09.2018 / 03:19