The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
multiTasking using fork mannoulla High Level Programming 3 07-07-2005 04:15 AM
fork() MKSRaja High Level Programming 2 02-07-2005 08:55 AM
OpenBSD bad Multitasking? Tomtefan UNIX for Advanced & Expert Users 2 07-10-2004 12:44 PM
Multitasking in korn shell sureshraju_ma Shell Programming and Scripting 7 11-28-2003 09:57 AM
Fork Deepali UNIX for Dummies Questions & Answers 5 08-26-2001 05:14 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 02-09-2005
Registered User
 

Join Date: Feb 2005
Posts: 2
Multitasking with fork()

Looking for a shell script to do the following :

-- I have 100's of process to execute on Sun.
-- These processes are not dependent on each other and can be executed in parallel.
-- I cannot execute them ALL at once to avoid the system resource to be occupied by these processes. I want to limit the number of processes to 8.

Looking for a shell script or a C program :
-- which can pickup the 100 processes and put them in its queue for execcution
-- and execute only 8 at any given time
-- as soon as one processes is over, this script should submit another processes from the queue

Please provide the links...
thanks
Reply With Quote
Forum Sponsor
  #2  
Old 02-09-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,616
How about the "at" command with a custom queue? Read the man pages on your system:
man at
man queuedefs
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:08 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0