why one stack per thread and one heap for all the threads?
From: tony osborne
Date: Fri Feb 25 2005 - 07:06:58 EST
Hi,
I wish to be personally CC'ed the answers/comments posted to the list in
response to this post
why in multithreading, each thread has its own stack, but all share the same
heap?
I understand that one stack is needed for each thread as each could have its
own procedure call. but why we don't associate a heap for each thread since
each thread can also create dynamically its own data?
Many thanks
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
http://www.msn.co.uk/messenger
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/