From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <13edbccfbea367d2454018035c47ad0c@quanstro.net> To: 9fans@cse.psu.edu Subject: Re: [9fans] Channels and threads From: erik quanstrom Date: Wed, 7 Nov 2007 16:55:47 -0500 In-Reply-To: <47322FE4.2060107@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: ee1f5eb8-ead2-11e9-9d60-3106f5b1d025 > So, what's the rationale behind using Channels? > Is passing by reference not recommended by Plan 9 design? > > D channels (the libthread variety) may pass by reference or value. so passing by reference or value is orthagonal to the question of why channels. for example, if you have a couple of i/o threads and one mux, the mux can wait for a message from one of the i/o threads that might say a) here's your data (8192 byte+overhead message), or b) your data is here (sizeof pointer+overhead message) - erik