Date: Sat, 24 Oct 1998 05:40:00 -0700 (PDT) From: Daniel Eischen <eischen@vigrid.com> To: freebsd-bugs@FreeBSD.ORG Subject: Re: kern/8375: pthread_cond_wait() spins the CPU Message-ID: <199810241240.FAA24654@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/8375; it has been noted by GNATS. From: Daniel Eischen <eischen@vigrid.com> To: dima@tejblum.dnttm.rssi.ru, jb@cimlogic.com.au Cc: eischen@vigrid.com, freebsd-gnats-submit@FreeBSD.ORG, jb@FreeBSD.ORG Subject: Re: kern/8375: pthread_cond_wait() spins the CPU Date: Sat, 24 Oct 1998 08:30:57 -0400 (EDT) > IMO, is this _SPINUNLOCK is too early or changing the thread state is too late > is not that important :-). Anyway, I would suggest to add 'spinlock_t *' > parameter to _thread_kern_sched_state. _thread_kern_sched_state would set > the state, unlock the spinlock and enter the scheduler. This would be useful > in quite a lot of places. (Richard Seaman sent a patch with a similar idea, but > I don't like something in it). I don't like that idea because it adds complication. It's not necessary in most cases. The thread schedule locking is very simple and could be more generally useful in the future for other things. Dan Eischen eischen@vigrid.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810241240.FAA24654>