<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>RE: [LCP]Threads in Linux</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>> I have a program in C++ in Linux which is using large arrays </FONT>
<BR><FONT SIZE=2>> (150000) inside a function, which called by a thread. After </FONT>
<BR><FONT SIZE=2>> compiling the same program in other platforms I am getting </FONT>
<BR><FONT SIZE=2>> weird run time errors, related to the stack and my </FONT>
<BR><FONT SIZE=2>> application crashes.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> question: using large arrays in that way is a problem with </FONT>
<BR><FONT SIZE=2>> other platforms, like HP-UX or Solaris ?</FONT>
</P>
<P><FONT SIZE=2>automatic arrays go on the stack, which is limited on some</FONT>
<BR><FONT SIZE=2>systems. Try adding a static (turning a stack auto array</FONT>
<BR><FONT SIZE=2>into a global bss array).</FONT>
</P>
<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Vincent Penquerc'h </FONT>
</P>
</BODY>
</HTML>