Concerning running parallel code in separate processes (unlike multithreading) and/or related to package `multiprocess` from PyPI.
Questions tagged [multiprocess]
462 questions
-1
votes
1 answer
How to cleanly quit consumer?
This is part of my uni assignment. It's a basic producer consumer problem but as the subject is OS, I am doing it in C rather than java or python.
/*
Write a program for p-producer c-consumer problem, p, c >= 1. A shared circular buffer that…

Mahek Shamsukha
- 110
- 7
-1
votes
1 answer
How to choose between multiprocessing and multitasking in python for file process?
I looked at other StackExchange threads related to this topic but seems I need further assistant in understanding.
Please take look at the following scenario? and do explain which method to be used and why?
I have written the Python Code already…
user13058902
-1
votes
1 answer
Why is multithreading slower?
A multi-process and multi-threaded implementation of three linked lists with 1000000 nodes using merge sort was implemented.
I compared the real-time of the implemented program, but the multi-thread method is slower.
Why is that?
main method in…

gowoo
- 11
- 3
-1
votes
1 answer
Which concurrency models do multi-process/thread programming belong to?
Wikipedia C/S article says
A number of formalisms for modeling and understanding concurrent
systems have been developed, including:[5]
The parallel random-access machine[6]
The actor model
Computational bridging models such as the bulk…

Tim
- 1
- 141
- 372
- 590
-1
votes
1 answer
How to detect and communicate with another process under Linux?
I have a program 'P' and P is executed in terminal A. Let's call it process A. While process A is running, terminal B is opened and executes P as process B.
How can I make process A find process B and exchange data with each other? Someone told me…

idwwwoqq808
- 23
- 1
- 5
-1
votes
1 answer
MultiprocessIterator doesn't work
I am using MultiprocessIterator from chainer to train an NN. The code is here.
The results are:
nproc = 1, 307.65s
nproc = 4, 318.85s
nproc = 8, 302.91s
nproc = 16, 318.18s
System info:
Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-104-generic…

cmjdxy
- 396
- 1
- 2
- 15
-1
votes
1 answer
RSpec testing of a multiprocess library
I'm trying to test a gem I'm creating with RSpec. The gem's purpose is to create queues (using 'bunny'). It will serve to communicate between processes on several servers.
But I cannot find documentation on how to safely create processes inside…

shamox
- 178
- 1
- 5
-1
votes
1 answer
How thread is preserved in os fork?
I want to check whether thread will be preserved during os.fork.
This is what the thread is started before os.fork.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import multiprocessing
from threading import Timer
import time
i = [0]
def…

andy
- 3,951
- 9
- 29
- 40
-1
votes
2 answers
What is wrong with my multi process program?
I'm doing a program with the objective of creating a process within a process 3 times(get a child process(1), a grand child process(2) and a grand grand child(3) process) and do actions in each process in reverse order of the creation order. Which…

Joaquim Ferrer
- 603
- 6
- 23
-2
votes
2 answers
How to make shell continually ask for input after execv in C++
I'm attempting to implement a shell in c++, using fork() and exec(). My code is as follows:
#include
#include
#include
#include
#include
using namespace std;
int main(int argc, char** argv){
…

ecatalano
- 687
- 1
- 4
- 17
-3
votes
1 answer
cudaMallocPitch is failed while multi GPUs are controlled by separated CPU processes despite the fact that enough memory is exist
I'm getting 'out of memory' error while using cudaMallocPitch API with GeForce GTX 1080 TI and\or GeForce GTX 1080 GPUs which are part of an entire PC server that include 4 GPUs (1 1080 TI and 3 1080) and two CPUs.
Each GPU is controlled by a…

OronG
- 21
- 4
-4
votes
1 answer
How to use Python Multiprocessing with YouTube API for crawling
I'm still a novice with python and now using multiprocessing is a big job for me.
So my question is, how do I speed to crawl the comments section of YouTube using the YouTube API whilst using multiprocessing?
This project is to crawl few 100000++…

nam
- 116
- 1
- 10