Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262685AbVBYMF5 (ORCPT ); Fri, 25 Feb 2005 07:05:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262684AbVBYMF5 (ORCPT ); Fri, 25 Feb 2005 07:05:57 -0500 Received: from bay14-f41.bay14.hotmail.com ([64.4.49.41]:35619 "EHLO hotmail.com") by vger.kernel.org with ESMTP id S262685AbVBYMEF (ORCPT ); Fri, 25 Feb 2005 07:04:05 -0500 Message-ID: X-Originating-IP: [80.15.132.11] X-Originating-Email: [tonyosborne_a@hotmail.com] From: "tony osborne" To: linux-kernel@vger.kernel.org Cc: tonyosborne_a@hotmail.com Subject: why one stack per thread and one heap for all the threads? Date: Fri, 25 Feb 2005 12:03:19 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 25 Feb 2005 12:04:01.0535 (UTC) FILETIME=[1806F0F0:01C51B32] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 815 Lines: 24 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/