From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: Can Xen sleep or wake up a thread? Date: Tue, 8 Oct 2013 18:38:49 +0200 Message-ID: <1381250329.15946.30.camel@Solace> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6995574310863034506==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xinxin Jin Cc: "Xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --===============6995574310863034506== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-mfs7tPuQDpunafAaGG1F" --=-mfs7tPuQDpunafAaGG1F Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On mar, 2013-10-08 at 08:11 -0700, Xinxin Jin wrote: > Hi everyone, >=20 >=20 > I found in Xen, when synchronization between multiple threads is > needed, Xen always uses busy wait or simple spin lock. > Mmm... What exactly is a 'thread' here? Are you talking about Xen internals? If yes, I don't think there's much multithreading involved there... > In linux, the kernel can block a waiting thread and schedule other > threads for execution. Why does Xen do not have this mechanism?=20 > Well, Linux, as a general purpose kernel, does indeed schedule a lot of different stuff, yes, but I still don't see where you think Xen could/should do something similar... > I guess it is because the performance issue? A lot of appreciation for > your answer !! >=20 Perhaps you can: - show some example of what you mean - describe what is the issue that you are seeing/trying to solve Regards, Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-mfs7tPuQDpunafAaGG1F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) iEYEABECAAYFAlJUNRkACgkQk4XaBE3IOsTlQwCdF2eV1Sg4MU+YQASqs8PSc/k1 WzwAnA5+fnV1N2Nv543il90z4IpfW85t =IzU5 -----END PGP SIGNATURE----- --=-mfs7tPuQDpunafAaGG1F-- --===============6995574310863034506== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============6995574310863034506==--