The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Comparing PIDs in a Shell... marconi Shell Programming and Scripting 1 03-04-2008 12:43 AM
TO find the word which occurs maximum number of times aajan Shell Programming and Scripting 5 01-11-2008 12:11 AM
comparing PIDs in shell.. marconi Shell Programming and Scripting 2 12-19-2007 07:57 AM
Find out the maximum growing file in a mount raman1605 UNIX for Dummies Questions & Answers 3 10-01-2007 05:25 PM
PIDs of background process ramkumar HP-UX 3 02-09-2005 12:13 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-03-2006
Registered User
 

Join Date: Aug 2005
Posts: 111
How to find the maximum # of PIDs

Is there a command in HP Unix which can be used inside a K shell to find out the maximum number of processes (PIDs) a pc can generate?

Any help will be greatly appreciated.

Steve
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-03-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,325
What do you mean by 'the maximum processes a pc can generate'? Do you want to know the largest pid that is possible on the system? Or do you want to know the maximum number of pids that a single user can have?
Reply With Quote
  #3 (permalink)  
Old 08-03-2006
Registered User
 

Join Date: Aug 2005
Posts: 111
Sorry for the confusion.
I want to know the maximum amount of PIDS a pc can generate at once.
Reply With Quote
  #4 (permalink)  
Old 08-03-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,325
Sorry if I am sounding particularly dumb, but what is 'a pc'? Do you mean a connection to a server?
Reply With Quote
  #5 (permalink)  
Old 08-03-2006
Registered User
 

Join Date: Aug 2005
Posts: 111
The pc is the machine which I am running processes locally.
I have this program which runs multiple processes at once but when this program runs for a long time I get a error "cannot fork, too many processes". So I want to create a shell which will stop new processes to be started when the machine reaches the limit of processes to be running at once to avoid this error.
Reply With Quote
  #6 (permalink)  
Old 08-03-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,325
You need to change the program... it looks like either the program logic is flawed, or it is going crazy...
Make sure that the program is checking for processes exiting before forking off new ones...
Reply With Quote
  #7 (permalink)  
Old 08-03-2006
Registered User
 

Join Date: Aug 2005
Posts: 111
Ok, I'll fix the program later but is there a command to find out the maximum amount of PIDS a pc can run at once?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:38 PM.


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 Global Fact Book

Content Relevant URLs by vBSEO 3.2.0