Questions tagged as 'multithreading'

1
answer

Problems with threads in C ++

Hello, I'm using mingw, 32-bit version on windows 7 Ultimate and I'm having trouble using threads. I know they do not work for this version of mingw, which is why I use the version on this link . But I do not compile this example because it say...
asked by 16.05.2018 / 23:17
1
answer

Object Oriented Multithread in C ++ 11 Native?

How is Multithread Orientado a Objetos implemented in C++11 ? in java this is possible through the% Class extension Thread / Implementing the Runnable interface and overriding the Run method of both. In C++11 I...
asked by 01.06.2015 / 14:23
2
answers

Unexpected result in using Parallel.ForEach

Next, I have a class that has a string list and the following structure public class Teste { private List<string> _codigos; public void InsertDB(string[] files) { _codigos = new List<string>();...
asked by 08.02.2018 / 14:09
1
answer

Program to convert mp3 using multiprocessing module is looping

import subprocess from multiprocessing import Process, Lock def ConverteMusica(a,lock): input_file_fmt = '{}.mp3' output_file_fmt = a for x in range(1, 5): subprocess.call(['ffmpeg', '-i',...
asked by 10.04.2018 / 14:43
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
1
answer

Error returns when trying to start some threads in a list

I need to create a function for my program, that when the user is pressing NUMPAD_8 , it turns off all thread , and if he presses again, it turns them back on. As I'm creating the thread list: public static List<Thread> th...
asked by 04.08.2017 / 15:34
2
answers

Number of simultaneous requests that a PHP server supports

Let's say I have a server with an i7 processor with 4 cores / 8 threads. On a multi-threaded architecture, assuming you create a thread on request, only 8 concurrent requests will be allowed, since the processor has 8 threads ? If PHP...
asked by 22.09.2017 / 20:01
1
answer

How to call a function without waiting for it to finish?

I need to call a function in PHP that writes several records in the database which will take a lot, I need to do it in the background while PHP does something else, is it possible? If so, how?     
asked by 04.08.2016 / 22:42
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