the execution of multiple concurrent processes in a system
Questions tagged [multiple-processes]
110 questions
3
votes
0 answers
Dead kernel when using ray
I tried to use ray for crawling some data.
My original code before using ray is as below, and works well.
def download(n):
#download nth data
return downloaded_data
I use ray in reference to ray tutorial, and this makes my kernel…

Geonsu Kim
- 601
- 1
- 6
- 12
3
votes
1 answer
Cannot run in multiple processes: IOLoop instance has already been initialized. You cannot call IOLoop.instance() before calling start_processes()
I'm trying to run multiple process in Tornado and I tried the suggestions made on this thread : run multiple tornado processess
But the error hasn't gone for me. This is the server file.
server.py
import os
import sys
import tornado
#import…

vivekanon
- 1,813
- 3
- 22
- 44
2
votes
0 answers
Why does my solution to The Cigarette Smoker's Problem not terminate?
I wrote a solution to The Cigarette Smoker's Problem that does not terminate.
A full description of the problem and pseudo-code for the solution can be found here. Briefly, the task is to synchronize four processes using semaphores.
I used the…

Carlos Torres
- 29
- 2
2
votes
1 answer
Does Numba need to compile separately within each parallel process?
I am using numba's @njit decorator to compile a function that gets used in parallel processes, but it is slower than I expected. Processes that should differ an order of magnitude in execution time take around the same time, which makes it look like…

Abelaer
- 25
- 4
2
votes
1 answer
Open another process in another Window
In my code I would like to launch a function/script in another python window (say, when you run one script, a back window pops up, I want that script to manage other scripts. They don't need to communicate).
Similar to multiprocessing but they have…
2
votes
2 answers
Why is the parent pid of a Python process sometimes 0 in Docker containers with docker-compose?
When running a python shell directly from a docker-compose run, the parent PID shows up as 0, which feels very wrong. I've put together a very simple, reproducible case below:
# Dockerfile
FROM python:3.7-buster
COPY . /code/
WORKDIR /code
#…

matthewarmand
- 23
- 4
2
votes
1 answer
Should child processes also be unblocking blocked SIGCHLD signals?
I'm trying to understand how blocking and unblocking signals work and I'm trying to understand the following piece of code. Specifically I am looking at line 28 (commented in the code): int a = sigprocmask(SIG_UNBLOCK, &mask, NULL);, aka where the…

Evan
- 193
- 9
2
votes
2 answers
C Mutex lock on shared memory accessed by multiple processes
I have two processes that will be running, one that will be reading from shared memory (mmap) and one that will be writing to that shared memory (mmap). These processes are started separately in two different terminals, but they need to be…

tedris
- 41
- 3
- 8
2
votes
0 answers
OSX multiple process app
I'm making a network client application for OS X. There's a part of the UI - let's call it the front-end - that starts up network sessions, and then there are the network sessions themselves.
I'd like the application to spawn the sessions into…

Ted Middleton
- 6,859
- 10
- 51
- 71
2
votes
0 answers
Using the same shader code in multiple processes
Are shader varying and uniform variables unique across separate applications?
I have a situation where I need to have several processes (separate programs actually) that use shader code with the same variable names with the exception of one uniform.…

Steve
- 123
- 1
- 8
2
votes
0 answers
Android remote service with same process name
Right now, I am doing android software development with its remote service component.
Actually, I have two remote services ,let me call them service A and service B respectively (service A is declared before service B in the Manifest.xml file) ,…

kevinbest0702
- 51
- 1
- 5
2
votes
1 answer
Using multiple threads/cores for awk performance improvement
I have a directory with ~50k files. Each file has ~700000 lines. I have written an awk program to read each line and print only if there is an error. Everything is running perfectly fine, but the time taken is huge - ~4 days!!!! Is there a way to…

Sandhya Prema
- 21
- 1
- 3
2
votes
1 answer
MySQL Multiple processes selecting same data
I have multiple processes running the exact same script, and the problem is that they are selecting the same data. I have a flag "in_use", which is set to 1 after being selected, but the other processes are too fast and selects the same data before…

user2215771
- 239
- 3
- 12
2
votes
4 answers
Difference between creating new process and child process in C (Windows)
I would like to create a new process of an exe from within the code itself, so that I can have two parallel processes.
But, I would like to them to be separate processes and not parent-child.
Is there a way to do this in C (Windows)?

Sunny
- 7,444
- 22
- 63
- 104
1
vote
0 answers
Crontab scheduled Selenium script occasionally fails to start Chromedriver
I'm using crontab to schedule a Selenium script with Chromedriver to run automatically. My script generates several processes, each running its own operation and independently opening its own instance of Chromedriver. However, I've noticed that…

Hibanana
- 11
- 2