473,386 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Spawning child processes

I have a stand-alone program that I want to convert into a client-server
type approach so that instead of running several instances of the same
program I just spawn new child processes. In theory this should reduce
the load on our server :-)

As I've never done any of this before could anyone please suggest
web-sites or other sources for useful info. I've done a google search,
but comes up mainly with distance learning courses for C :-(

TIA
Chris.

Nov 13 '05 #1
2 3208
Chris <no*******@bms.umist.ac.uk> wrote in
news:3f********@news.umist.ac.uk:
I have a stand-alone program that I want to convert into a client-server
type approach so that instead of running several instances of the same
program I just spawn new child processes. In theory this should reduce
the load on our server :-)

As I've never done any of this before could anyone please suggest
web-sites or other sources for useful info. I've done a google search,
but comes up mainly with distance learning courses for C :-(


I'm afraid we're no help here since the C language has not notion of
spawning processes. You simply cannot do this without some system-specific
(read: off-topic here) libraries. This sounds kind of unixy so why not try
over in comp.unix.programmer?

--
- Mark ->
--
Nov 13 '05 #2
Mark A. Odell wrote:
Chris <no*******@bms.umist.ac.uk> wrote in
news:3f********@news.umist.ac.uk:

I have a stand-alone program that I want to convert into a client-server
type approach so that instead of running several instances of the same
program I just spawn new child processes. In theory this should reduce
the load on our server :-)

As I've never done any of this before could anyone please suggest
web-sites or other sources for useful info. I've done a google search,
but comes up mainly with distance learning courses for C :-(

I'm afraid we're no help here since the C language has not notion of
spawning processes. You simply cannot do this without some system-specific
(read: off-topic here) libraries. This sounds kind of unixy so why not try
over in comp.unix.programmer?


Thanks. I'll head over there then.

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Markus Franz | last post by:
Hi. I created a little script: for currenturl in sys.argv: pid = os.fork() if pid == 0: signal.alarm(10) do_something() # placeholder for the download and print routine
6
by: Bob Swerdlow | last post by:
My application starts up a number of processes for various purposes using: self.popen = popen2.Popen3("/usr/local/bin/python -O "myscript.py") and then shuts them down when appropriate with...
2
by: Rech | last post by:
Hi, I need a little help here managing child processes in Python. I'm not so skilled in system programming so I hope you can give me some good suggestions. I have a very CPU and memory...
2
by: Dave Kirby | last post by:
I am working on a network management program written in python that has multiple threads (typically 20+) spawning subprocesses which are used to communicate with other systems on the network. This...
1
by: Jason Godden | last post by:
Hi All, I've written a few C functions in the version 1 format as well as some SPI based backend bits and I'm curious as to how PG treats these items when used within plpgsql. The set of...
5
by: Jeremy | last post by:
I have a core VB service that monitors a database, and based on data in the records will execute code to send email notifications. Problem: I don't want my main program code to halt and wait for...
22
by: Jason Zheng | last post by:
This may be a silly question but is possible for os.wait() to lose track of child processes? I'm running Python 2.4.4 on Linux kernel 2.6.20 (i686), gcc4.1.1, and glibc-2.5. Here's what happened...
12
by: bhunter | last post by:
Hi, I've used subprocess with 2.4 several times to execute a process, wait for it to finish, and then look at its output. Now I want to spawn the process separately, later check to see if it's...
2
by: rocco.rossi | last post by:
I'm using the Python processing module. I've just run into a problem though. Actually, it's a more general problem that isn't specific to this module, but to the handling of Unix (Linux processes)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.