Questions tagged as 'paralelismo'

2
answers

Problems Embarrassingly parallel?

I was looking for problems called "embarrassingly parallel", problems that do not exist dependencies between tasks, and can be divided in parallel. Could you give me some suggestion of some algorithm?     
asked by 11.11.2014 / 17:25
2
answers

What are the advantages of parallel.ForEach in C #?

Working with C # I have seen that we have the option to work with parallel.ForEach() . What is the advantage of working with it and not foreach ?     
asked by 14.05.2016 / 03:36
1
answer

Using Callable in java sequentially executes the code

I'm doing a server in java that wanted to perform certain tasks in parallel. I have a list of a certain type I want 20 threads to deal with deterimented list elements. for( Item item : result ) { Callable< List< IResult > > cal...
asked by 06.12.2016 / 16:03
1
answer

What is the best way to make multiple requests to an API?

I came to put this question one more time thinking that it would be beneficial for the community to have a canonical way of making multiple http requests to a particular API. More specifically this question motivated me to put my question....
asked by 19.05.2016 / 11:09
2
answers

Java Fork / Join Does it work just like the C fork?

Discussing with a friend about a matrix calculation solution we are developing, the following question came up. Does the Java Fork / Join Framework work just like C? Reading a little, I could not understand C's work very well. Could anyone...
asked by 22.10.2015 / 15:24
2
answers

I understand a parallel execution using fork. How does the fork work?

import os def filho(): print('Ola do filho', os.getpid()) os._exit(0) def pai(): while True: newpid = os.fork()# fornece ID para um novo processo! if newpid == 0: filho() else: print('...
asked by 07.04.2018 / 18:08
1
answer

execute .GlobalEnv function in parallel processing

I need to run a function that is in .GlobalEnv in a parallel processing using the multidplyr package. Using a simple example and no parallel processing works as expected: library(dplyr) library(purrr) library(multidplyr) data.frame(x = 1:1...
asked by 21.02.2017 / 19:24
0
answers

Parallel Computing - how does data dependence work? [closed]

I'm studying a bit about parallel computing and I'm not sure how data dependency works?     
asked by 08.08.2017 / 19:01
1
answer

How to parallelize a sapply with table

I can perform sapply without problems, but I can not parallelize. In the original script I have more than 9,000,000 lines and so it is unfeasible to continue without parallelization. dfteste<-data.frame(c(1,1,1),c(1,1,1),c(1,1,1)) apteste&l...
asked by 25.04.2018 / 16:43
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