Questions tagged as 'thread'

1
answer

Help with Subprocess and Thread

I made a code that each subprocess call is executed by a different Thread, but they execute the same method with same parameters. Would you like to call these subprocesses using Thread but passing different commands? Example, open the calc...
asked by 10.05.2017 / 15:15
0
answers

Search using Thread

I am looking for files using threads, the code I developed looks for the correct file, but it happens that it does not finish the execution when it finds, that is, if it does not find it, it continues to execute. import java.io.File; import jav...
asked by 04.05.2017 / 16:41
0
answers

Is browsing really a multithreaded application?

Once, in the discipline of Distributed Systems, the teacher asked a question and he himself answered: Which example of multithreaded application is widely used by all? The browse, because when loading an HTML page, each element such as ima...
asked by 13.04.2017 / 03:54
1
answer

Modify visual element by another thread

I want to define a Thread in a RichTextBox but I get an error saying    Can not make calls from another thread than the same TextBox I've heard that it's possible to use the Control.Invoke option, so I was very much in doubt at th...
asked by 18.10.2015 / 00:46
0
answers

Java programming with threads

People need help with an activity:    Consider three number vectors.   Write a program to print out the largest Twins in each vector.       Which are the largest prime numbers of twins considering all the elements.   (In all vectors)      ...
asked by 12.04.2017 / 13:38
1
answer

Doubt about threads

I have two classes. One has thread for downloading email attachments and the other has thread for converting files xml to csv . I gave a start in these two threads to another classe . The% of% of ema...
asked by 27.01.2017 / 16:38
1
answer

MediaPlayer and Thread

Good evening, I have an activity in which I reproduce a bell x times, during t time, and for this I use a MediaPlayer inside a Thread, as below: public void tocarSino(final int repeticao, final long intervalo,final int audio, final Context...
asked by 24.01.2017 / 08:01
1
answer

How to make RequestContext thread-safe?

In a project I'm using the demoiselle-scheduler-quartz component. In this project several threads are fired and executed concurrently. The demoiselle-scheduler-quartz component injects the Demoiselle contexts (RequestContext, SessionContext, Vie...
asked by 11.10.2016 / 22:05
0
answers

How to match a value of an array with another value in another array in Java?

I know how to get the value of an array position and compare the array values. As per the code below. for (int i = 0; i < listadosWifi.size(); i++) { /* pega o SSID e o BSSID */ providerName = "\n"+(listadosWifi.get(i).SSID)...
asked by 15.09.2016 / 14:17
1
answer

Doubt with use of 'pthread' in posix

I am using the following routine with command pthread.h library: // // Declaração // pthread_t threads[NUM_THREADS]; // // Criacao // for(...) { pthread_create(&threads[i], NULL, MainTH, (void *) &thread_ar...
asked by 02.08.2016 / 14:44