From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GshYL-0007JI-7z for qemu-devel@nongnu.org; Fri, 08 Dec 2006 10:22:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GshYJ-0007GO-Az for qemu-devel@nongnu.org; Fri, 08 Dec 2006 10:22:20 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GshYJ-0007G2-2v for qemu-devel@nongnu.org; Fri, 08 Dec 2006 10:22:19 -0500 Received: from [65.74.133.4] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GshYI-0003HK-Pl for qemu-devel@nongnu.org; Fri, 08 Dec 2006 10:22:19 -0500 From: Paul Brook Subject: Re: [Qemu-devel] need advice on PCI board emulation Date: Fri, 8 Dec 2006 15:22:14 +0000 References: <1165575170.22384.16.camel@bibi> In-Reply-To: <1165575170.22384.16.camel@bibi> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612081522.15548.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org > I'm working on a modem PCI board emulation inside Qemu. I misread "modem PCI board" as "modern PCI board" in your original post. The correct response is much shorter: > - to emulate demodulated incoming data, I launch one thread waiting > with blocking reads on a UDP socket. You should use the existing serial devices. > So, my question is : > Is it reasonable to use threads to emulate parallel behaviors ? No. You should copy how the existing devices (eg. serial ports) work. You don't need parallel operation. Modems are low-bandwith devices, so you're not going to get any performance benefit from using multiple threads. Paul