Stack size

Andrew Haley aph@cambridge.redhat.com
Thu Dec 6 03:08:00 GMT 2001


Steen Jansdal writes:
 > 
 > The reason I'm asking this is that I'm trying to evaluate if Linux 
 > on a x86 is going to be the platform for our next embedded 
 > device. The memory on this device are limited to 16 or 32 Mb.
 > The programs for this device are going to heavy multithreaded,
 > and consist of a web-server, a soap-server and several user
 > programs. It is my highest wish that we can use java as our
 > language. C++ is too difficult to maintain.
 > 
 > Any advices for my evaluation are much appreciated.
Java stacks are quite small unless heavy recursion is used. This is
because the language does not use stack allocation for anything except
scalar variables -- numbers and object references.
In any case, Linux systems do not need to allocate "real" memory areas
to thread stacks -- it's all in virtual memory anyway, and physical
memory is paged as required.
Andrew.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /