Questions tagged as 'thread'

3
answers

Multithread in web application

I have an application that does some processing on the server and then delivers it to the client. Something like: http://aplicacao:8080/app/videos/extrair/{id}. Where "id" is the item reference for processing. If user retry request 1...
asked by 13.07.2014 / 11:03
3
answers

Fork in Join in Java

During a project I was suggested to use Fork in Join of the Java API instead of threads , I found nothing easy to understand by the examples found on Google. I understand that it is possible to pass a list of tasks and it subdivides a...
asked by 06.02.2014 / 12:33
2
answers

How to instantiate objects in shared memory?

I have an application in which there are several modes of parallelization. However, when I am going to parallelize through fork () the barrier is not shared between the processes, is there any difference of Shm in dealing with instantiation via...
asked by 20.11.2018 / 13:33
1
answer

Timer with threads in java

Good evening, guys! I'm developing a multithreaded client / server system. Several clients connect, and when they send the string "Ocupada" 3 times, the code exits the while , starts counting the time and ends the connection with...
asked by 31.07.2016 / 05:32
2
answers

How to manipulate objects in a Thread?

I have the following code: MinhaClasse[] obj = new MinhaClasse[QtdUsuario]; Thread th; For(int i = 0; i < QtdUsuario; i++) { obj[i] = new MinhaClasse(); th = new Thread(new ParameterizedThreadStart(Metodo)); th.SetApartmentSta...
asked by 28.11.2016 / 23:25
1
answer

How does the operating system distribute the processor through the various programs?

In the current operating systems there is the possibility of having several programs running. It is the job of the operating system to ensure that all programs have the opportunity to perform work (processing code instructions). Everything wo...
asked by 02.12.2016 / 13:40
3
answers

What is the difference between SmtpClient.SendAsync and SmtpClient.Send () using Thread?

What is the difference between using SmtpClient.SendAsync() and creating threads and running SmtpClient.Send() for sending messages? Is there a lot of difference in performance or resource consumption?     
asked by 05.10.2016 / 15:07
1
answer

Is there any way to start a Thread that is in a method in another class?

I have a method and inside it a thread, I needed to "start" it from another class and then check when the thread is gone. Is it possible to do that? my code: Thread th; public void inserir(){ th = new Thread(){ public void run(){...
asked by 03.11.2015 / 19:04
1
answer

How to compile SQLite3?

I'm trying to run a short test with SQLite3. I can not run this program so simple! I have already researched solutions on the internet and none of them solved my problem. Follow the program, cmakelists and logs : main.c #include <stdi...
asked by 06.10.2015 / 15:07
1
answer

HTML "script" tags receive exclusive "thread" for each one in the browser?

If separating JavaScript processes into tags <SCRIPT> are worth for individual processing of each schedule, or does the browser put everything together in a single process? Does anyone who really understands operating system an...
asked by 30.12.2014 / 12:13