Questions tagged [concurrent-processing]

[CONCURRENT] processing, in sharp contrast to a [PARALLEL] processing, has no specific requirements on when to start, where & in what particular order to execute and when or how to finish a set of tasks, that got a chance to be executed in a free flowing, uncoordinated fashion on a subset of available resources.

In a "just"-[CONCURRENT] process orchestration, the code-units (be it tasks, threads, programmes... ) may but, need not, appear to get executed in some non-[SERIAL], overlapped in time, fashion or simultaneously (just by coincidence), all that by using more than one CPU or processor core and other shared resources to execute a program or multiple computational units.

A "just"-[CONCURRENT] process orchestration does not warrant any mutual coordination, the less a synchronicity a True-[PARALLEL] warrants by definition.

A "just"-[CONCURRENT] process orchestration enables more things to happen con-currently, the process-scheduler and other constraints participate in evaluating, who gets "elected" for such a con-current processing and who not.

68 questions
0
votes
2 answers

Parallelizing operations for pandas dataframe

I have a very large pandas dataframe similar as follows: ╔════════╦═════════════╦════════╗ ║ index ║ Users ║ Income ║ ╠════════╬═════════════╬════════╣ ║ 0 ║ user_1 ║ 304 ║ ║ 1 ║ user_2 ║ 299 ║ ║ ... ║ …
Snedecor
  • 689
  • 1
  • 6
  • 14
0
votes
2 answers

How to let different threads fill an array together?

Suppose I have some tasks (Monte Carlo simulations) that I want to run in parallel. I want to complete a given number of tasks, but tasks take different amount of time so not easy to divide the work evenly over the threads. Also: I need the results…
willem
  • 2,617
  • 5
  • 26
  • 38
0
votes
0 answers

How to best organise concurrent processing of a set of processes with known duration?

We have a task handling system that handles a number of tasks, between 12 and 16 at any given batch, using 4 CPU's. Each task takes a known amount of time on a single CPU. At the moment, the order of selecting the tasks to run is arbitrary. The…
carbontracking
  • 1,029
  • 4
  • 17
  • 33
0
votes
0 answers

Is this multitasking related quote correct?

When running on a multicore system, multitasking OSs can truly execute multiple tasks concurrently I saw this sentence in Nathional Instrument's website and I think "concurrently" should be "parallel". Am I right? Link:…
0
votes
3 answers

Concurrent Threads in C# using BackgroundWorker

My C# application is such that a background worker is being used to wait for the acknowledgement of some transmitted data. Here is some psuedo code demonstrating what I'm trying to do: UI_thread { TransmitData() { // load data for tx …
Jim Fell
  • 13,750
  • 36
  • 127
  • 202
-1
votes
1 answer

Parallelize a list item append to dict using multiprocessing

I have a large list containing strings. I wish to create a dict from this list such that: list = [str1, str2, str3, ....] dict = {str1:len(str1), str2:len(str2), str3:len(str3),.....} My go to solution was a for loop but its taking too much time…
-2
votes
1 answer

How to launch 100 workers in multiprocessing?

I am trying to use python to call my function, my_function() 100 times. Since my_function takes a while to run, I want to parallelize this process. I tried reading the docs for https://docs.python.org/3/library/multiprocessing.html but could not…
-3
votes
1 answer

Question regarding concurrent execution of processes using multiprocessing module

I was recently learning multiprocessing using Python. What I learned is that we use multiprocessing module in Python to achieve parallelism, which means that the processes are executed at the same time. But why below codes showing that there are a…
Parry Wang
  • 115
  • 8
1 2 3 4
5