Questions tagged as 'paralelismo'

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

Parallel with only one core?

I'm wanting to parallelize an application, in this case a 'cosine similarity' calculation, but the machine I'm working on has only one core. Paralleling this calculation with only one core will have some significant gain?     
asked by 09.01.2018 / 13:36
1
answer

AsParallel () .ForAll vs async await

When using AsParallel().ForAll , and when to use async await ? I'm providing an example with a download routine and a file manipulation routine. AsParallel().ForAll performs better in parallel download operation. as...
asked by 14.11.2018 / 17:59
1
answer

Is there a race condition problem in my code?

Is there a problem in race condition in the code below? Private Shared Sub TestRandomNumberGeneration(ByVal random As Random) Dim failed As Boolean = False Parallel.For(0, 100000, Sub(i, state) Dim [next] As Integer = random....
asked by 21.04.2014 / 23:07
1
answer

Error writing to MongoDB using Parallelism in C #

I have a collection in Mongo that has subdocuments, so I read xml files and write them to MongoDB. Each xml file is a document in Mongo. My classes public class Cabecalho { public Cabecalho() { Operacoes = new List<Operac...
asked by 04.09.2014 / 13:38
1
answer

How to use joblib in Python for parallelism?

I was trying to use Thread of Python to parallelize my code but I ran into a problem: when I command to create the threads, the amount of them exceeds 1,000 Threads easily, which, from 140, all begin to give error. Searching a bit I found...
asked by 12.08.2017 / 19:37
1
answer

Using classes from the java.util.concurrent package to multiply arrays in android?

I was doing this program to multiply arrays, I saw that it correctly calculates the result, but there is no performance gain by putting more threads, often even worsening performance despite being running on a quad-core smartphone. I would like...
asked by 10.11.2014 / 14:43
1
answer

Working with Parallel using the NInject library

How can I configure ninject to make it available to an instance of a given object for each thread that calls it? Can the ninject kernel be run before a code with parallelism or is it necessary to instantiate a new kernel inside the thread cod...
asked by 14.04.2016 / 23:26
1
answer

How to use OpenMP Lock Routines?

I need to create 5 easy-to-understand algorithms for each of the locking functions below in C or C ++ to be able to exemplify the operation of each and present to the staff in my room. omp_init_lock_with_hint omp_init_nest_lock_with_hint...
asked by 14.05.2017 / 19:36
2
answers

Parallelism in Sql Server with C #

I'm implementing async methods in C # and would like to know how to proceed when I get into Sql. When I open a connection to the sql server, does it allow me to parallelize only one connection? That is, can I send several queries to him that...
asked by 21.08.2017 / 18:09