[LCP]Threads in Linux

Rafael Sanchez rsanchez at metilinx.com
Mon Jun 24 22:16:05 UTC 2002


Thanks for your answer

I know how to use malloc, but I was transferred that code and I wanted to be sure if there is any problem documented when porting that code to other platforms. Of course the way to do it is using malloc.

Regards
Rafael

-----Original Message-----
From: Greg Black [mailto:gjb at gbch.net]
Sent: Monday, June 24, 2002 7:58 AM
To: linuxcprogramming at lists.linux.org.au
Subject: Re: [LCP]Threads in Linux 


"Rafael Sanchez" wrote:

| I have a program in C++ in Linux which is using large arrays
| (150000) inside a function [...]
| 
| question: using large arrays in that way is a problem [...]? 

It's always unwise to do this.  Learn how to use malloc().

_______________________________________________
This is the Linux C Programming List
:  http://lists.linux.org.au/listinfo/linuxcprogramming List




More information about the linuxCprogramming mailing list