The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 04:43 AM
TO find the word which occurs maximum number of times aajan Shell Programming and Scripting 5 01-11-2008 04:11 AM
comparing PIDs in shell.. marconi Shell Programming and Scripting 2 12-19-2007 11:57 AM
Find out the maximum growing file in a mount raman1605 UNIX for Dummies Questions & Answers 3 10-01-2007 08:25 PM
PIDs of background process ramkumar HP-UX 3 02-09-2005 04:13 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-03-2006
stevefox stevefox is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 114
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
  #2 (permalink)  
Old 08-03-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
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?
  #3 (permalink)  
Old 08-04-2006
stevefox stevefox is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 114
Sorry for the confusion.
I want to know the maximum amount of PIDS a pc can generate at once.
  #4 (permalink)  
Old 08-04-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Sorry if I am sounding particularly dumb, but what is 'a pc'? Do you mean a connection to a server?
  #5 (permalink)  
Old 08-04-2006
stevefox stevefox is offline
Registered User
  
 

Join Date: Aug 2005
Posts: 114
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.
  #6 (permalink)  
Old 08-04-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
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...
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:49 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0