![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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.
|
| Forum Sponsor | ||
|
|
|
#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? |
|||
| Google The UNIX and Linux Forums |