From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2a1cb69fd9833268282a365bfa15cc54@terzarima.net> To: 9fans@9fans.net From: Charles Forsyth Date: Mon, 14 Jul 2008 21:43:23 +0100 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] Plan 9 and multicores/parallelism/concurrency? Topicbox-Message-UUID: e6bbb2a6-ead3-11e9-9d60-3106f5b1d025 > // But do you know of any part [of Plan 9] that would be > // beneficial for highly-SMP systems? one difference from many of the others is that plan 9, both kernel and applications, were written with multiprocessors in mind, at least up to 32 or so, so data structure locking was included as the code was written, and processes (kprocs in the kernel) were used (or not) as appropriate. generally, the granularity used seems appropriate. kernel processes can be pre-empted. there is plenty of scope for parallelism. many others started with a non-preemptible kernel and added a big global lock, and gradually, very gradually changed code to use locks at finer granularity. sometimes.