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
Segmentation fault big123456 Linux 0 07-20-2007 02:01 AM
Segmentation fault rshaikh AIX 2 04-16-2007 05:12 AM
segmentation fault wojtyla High Level Programming 3 02-19-2005 11:53 AM
Segmentation fault jshaulis AIX 1 06-01-2004 01:16 PM
segmentation fault omran High Level Programming 2 08-01-2003 05:19 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-28-2004
Registered User
 

Join Date: Jun 2004
Posts: 2
fork and segmentation fault

I have a program which forks out child processes (a limit of 4 simultaneous processes is set due to server capacity). In total, there are about 12 processes to run and 2 of them require long processing time: 2-3 hours each. There was a time when the program hit the segmentation fault problem. I understand that when each process is forked, a stack is allocated for that process. My question: what is the usual size of the stack? Is this problem caused by the long processes? Currently, the program does not include signal handling.
Reply With Quote
Forum Sponsor
  #2  
Old 07-08-2004
Registered User
 

Join Date: Jun 2004
Posts: 2
Thanks for the answer!

I have another issue here. Is there a limit on the number of processes (by using "ps" to check) which can be launched by a user? For example, I have concurrent 4 child processes (a limit set by the C++ program) running along with other processes. There was a time when the parent could not fork new child processes when the existing ones completed. Is it true that once the number of processes (shown by using "ps" command) hits the limit, no new child process can be forked? How do I check/change this limit?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:43 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