On Sat, 22 Nov 2003 at 12:22 (+0100), Philipp Thomas wrote:
Bernhard Walle
[Sat, 22 Nov 2003 10:26:51 +0100]: Ok, dass es soviel ist habe ich nicht bedacht.
C/C++ Programme können ja die Grösse des benötigten Stacks über pthread_attr_setstacksize modifizieren (aber nicht unter PTHREAD_STACK_SIZE), wie das bei Java aussieht weiss ich nicht.
Folgendes habe ich hierzu gefunden (aus java(1)): -Xssn Each Java thread has two stacks: one for Java code and one for C code. The -Xss option sets the maximum stack size that can be used by C code in a thread to n. Every thread that is spawned during the execution of the program passed to java has n as its C stack size. The default units for n are bytes and n must be > 1000 bytes. To modify the meaning of n, append either the letter k for kilobytes or the letter m for megabytes. The default stack size is determined by the Linux operating system upon which the Java platform is running. Allerdings kann ich momentan problemlos von Java aus mehr als 1500 Threads erzeugen, scheint also wirklich auf die Situation anzukommen und der freie Speicher scheint ein Faktor zu sein. Gruß, Bernhard -- _________ http://www.bwalle.de _________________________________________________ "Was wir wissen, ist ein Tropfen; was wir nicht wissen, ein Ozean." -- Isaac Newton