Questions tagged as 'multitasking'

3
answers

Differences between fine grain and coarse grain

I have read numerous documentations about the differences between fine grain and coarse grain parallelism, but I do not get to understand it very well, here is an example of what I have seen:    "An application shows fine grain parallelism i...
asked by 21.11.2016 / 19:06
0
answers

Scope of the variables in OpenMP

As I understand when declaring a variable of private type in OpenMP, it does not initialize, it simply makes the memory reservation and when it leaves the parallel scope, it recovers its initial value. The doubt arises when implicitly said va...
asked by 16.09.2018 / 19:59
0
answers

Object not pickleable running multiprocessing

I have a script that scrapes a data table from the web, so that each node represents a row, and inside the tag is information that I want to obtain. The linear sequence code works fine, but I have decided to try to execute it asynchronously with...
asked by 14.11.2017 / 09:56
1
answer

How to synchronize C threads with OpenMP

I have this code that tries to make a Geometric Series using OpenMP, but in the end it does not get the same result as when it is executed sequentially. #include <omp.h> #include <stdio.h> #define LIM 1000000000 int main(void) {...
asked by 04.05.2017 / 06:10
1
answer

Python multiprocessing (Pool) error

I have a problem with multiprocessing my program. This is the code of the program and below I insert the error: Program: import argparse import sys import multiprocessing from multiprocessing import Pool import time def main(): parser...
asked by 24.01.2017 / 22:12
2
answers

Task.Factory.StartNew and blocking UI

I have a problem. I'm in a WPF application and I want to do a SQL query in the background, all this I already have, the problem that at the time of making the "query", the UI is branded and I do not know why, if I'm doing it in another thread ....
asked by 27.08.2016 / 22:16
0
answers

Java concurrence

How about? I am a student and in one of the subjects that I have (concurrent programming) I am asked to perform an exercise. Which says that a series of threads (cars) come to a river and get on a boat (another thread) this boat crosses them fro...
asked by 17.11.2018 / 21:23
0
answers

Parallel.ForEach AgregateException - Sometimes I have problems using foreach in parallel

Sometimes I have problems using the foreach in parallel (I have a for within the foreach that adds values to a list), when the number of iterations per thread is large I get that exception. Sometimes it is slower than the...
asked by 10.09.2016 / 02:53