From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:59648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLuY6-0006z3-9U for qemu-devel@nongnu.org; Thu, 03 Nov 2011 06:29:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLuY1-0006UQ-Q9 for qemu-devel@nongnu.org; Thu, 03 Nov 2011 06:29:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLuY1-0006U5-J7 for qemu-devel@nongnu.org; Thu, 03 Nov 2011 06:29:25 -0400 Message-ID: <4EB26CF4.7080806@redhat.com> Date: Thu, 03 Nov 2011 12:29:08 +0200 From: Avi Kivity MIME-Version: 1.0 References: <4EB1640F.2090604@adacore.com> <4EB1796B.7050901@adacore.com> <4EB181C4.1090501@redhat.com> <4EB19F6B.8020907@redhat.com> <4EB264D5.6070009@adacore.com> <4EB2689F.3060205@redhat.com> In-Reply-To: <4EB2689F.3060205@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Multiple instances of Qemu on Windows multicore List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , qemu-devel@nongnu.org, Fabien Chouteau On 11/03/2011 12:10 PM, Paolo Bonzini wrote: > >> Also, why running all the threads on the same CPU would >> make the code thread-safe? > > It would ensure that two mutators wouldn't run concurrently. In some > sense, signal-safe code could then be considered thread-safe too. > How so? The scheduler can switch between the two threads on every instruction. -- error compiling committee.c: too many arguments to function