Questions tagged [spawning]
143 questions
175
votes
9 answers
How to spawn a process and capture its STDOUT in .NET?
I need to spawn a child process that is a console application, and capture its output.
I wrote up the following code for a method:
string retMessage = String.Empty;
ProcessStartInfo startInfo = new ProcessStartInfo();
Process p = new…

FlySwat
- 172,459
- 74
- 246
- 311
19
votes
2 answers
gevent: downside to spawning large number of greenlets?
Following on from my question in the comment to this answer to the question "Gevent pool with nested web requests":
Assuming one has a large number of tasks, is there any downside to using gevent.spawn(...) to spawn all of them simultaneously rather…

ARF
- 7,420
- 8
- 45
- 72
9
votes
2 answers
Thread Pool vs Many Individual Threads
I'm in the middle of a problem where I am unable decide which solution to take.
The problem is a bit unique. Lets put it this way, i am receiving data from the network continuously (2 to 4 times per second). Now each data belongs to a different,…

h.i
- 515
- 1
- 5
- 16
6
votes
4 answers
How to deploy Django with Spawning
There's no much documentation on how to deploy a Django project with Spawning and yet people are recommending it over apache/mod_wsgi.
In another similar question, other SO user suggested me to open a new question specific to Spawning, so hopefully…

Tiago
- 9,457
- 5
- 39
- 35
5
votes
3 answers
How to spawn Linux process from Windows application?
My interactive 32-bit Windows app (now moving from Delphi [Ent] 2007 to 2009) uses command-line interactions to spawn child processes that do computationally-intensive tasks, which in turn write text files that the GUI parent app parses and analyzes…

Argalatyr
- 4,639
- 3
- 36
- 62
5
votes
4 answers
Python: How to determine subprocess children have all finished running
I am trying to detect when an installation program finishes executing from within a Python script. Specifically, the application is the Oracle 10gR2 Database. Currently I am using the subprocess module with Popen. Ideally, I would simply use the…

pokstad
- 3,411
- 3
- 30
- 39
5
votes
1 answer
Make objects spawn correctly within different screen widths sizes unity
I made my first game in Unity. It should be published to Android and iOS. Everything is working fine except the asteroids are cut off when I change the screen ratio to 9:18(Samsung S8, Lg G6...) The asteroids are being cut off because the spawn…

Marijan Klarić
- 91
- 8
5
votes
2 answers
Kill NodeJS child processes
During development I make mistakes in my NodeJS project. Mistakes lead to an error message like this.
events.js:85
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at exports._errnoException (util.js:742:11)
…

xpepermint
- 35,055
- 30
- 109
- 163
4
votes
2 answers
Rapid spawning in Pygame
Okay, i just started using pygame a week ago but i think i understand the basics. My game is really simple, move the balloon left and right to dodge the incoming screws.
I successful made the balloon move left and right, but i'm very unfamiliar…

Parsa Sanei
- 41
- 1
- 2
4
votes
3 answers
Spawning and terminating a person in a sim game (in Java)
I am developing a 2D grid based sim game. Progress is good.
Been cracking out code for the last few days really well, and I've been having some issues today.
I build two rooms, set the door position, and spawn a person. The person has the 2 room…

Relequestual
- 11,631
- 6
- 47
- 83
3
votes
2 answers
Bash: spawn child processes that quit when parent script quits
I'd like to spawn several child processes in Bash, but I'd like the parent script to remain running, such that signals send to the parent script also affect the spawned children processes.
This doesn't do…

Geremia
- 4,745
- 37
- 43
3
votes
2 answers
Why does this enemy spawn method cause Unity to crash?
I've been working on this section of code in the main Gameplay.cs script of my Unity 2D project for a long while now and no matter which way I change it and shift things around, it either causes Unity to lock up on Play or, after some tweaking, will…

TechnoCat
- 145
- 2
- 2
- 7
3
votes
2 answers
How to spawn simultaniously turtles in netlogo
Is there a way to spawn turtles during simulation even if they died. In my simulation fish are eating plankton, so if they encounter plankton the plankton dies/gets eaten. However, when a fish can't eat plankton anymore it will die because it…

mnovabox
- 41
- 5
2
votes
1 answer
Trac spawning for nginx deployement without using tracd
I am trying to run Trac on nginx.
There is a simple solution that consists of running the tracd server, but I'm trying to avoid that. It doesn't support unix sockets.
Instead, I'm trying to use Spawning that should be able to launch any WSGI…

alexpirine
- 3,023
- 1
- 26
- 41
2
votes
2 answers
Spawning Enemy at a Random Location
I've been following this code snippet from Ray Wenderlich's tutorials (http://codeviewer.org/view/code:1d8b). I'm trying to do almost the same thing, except I'm using a spritesheet (batchnode), and I want the targets/enemies to spawn from the right…

Joethemonkey101
- 149
- 2
- 18