linux-os (Dick Johnson) wrote:
To fix the current problem, you can substitute usleep(0); It will give the CPU to somebody if it's computable, then give it back to you. It seems to work in every case that sched_yield() has mucked up (perhaps 20 to 30 here).
That sounds like a terrible hack. What cases has sched_yield mucked up for you, and why do you think the problem is sched_yield mucking up? Can you solve it using mutexes? Thanks, Nick -- SUSE Labs, Novell Inc.Send instant messages to your online friends http://au.messenger.yahoo.com -
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: pthread_mutex_unlock (was Re: sched_yield() makes OpenLDAP slow)
- From: "linux-os \(Dick Johnson\)" <linux-os@analogic.com>
- Re: pthread_mutex_unlock (was Re: sched_yield() makes OpenLDAP slow)
- References:
- e100 oops on resume
- From: Stefan Seyfried <seife@suse.de>
- Re: e100 oops on resume
- From: Mattia Dongili <malattia@linux.it>
- Re: e100 oops on resume
- From: Olaf Kirch <okir@suse.de>
- Re: e100 oops on resume
- From: Olaf Kirch <okir@suse.de>
- Re: sched_yield() makes OpenLDAP slow
- From: Howard Chu <hyc@symas.com>
- Re: sched_yield() makes OpenLDAP slow
- From: "Christopher Friesen" <cfriesen@nortel.com>
- pthread_mutex_unlock (was Re: sched_yield() makes OpenLDAP slow)
- From: Howard Chu <hyc@symas.com>
- Re: pthread_mutex_unlock (was Re: sched_yield() makes OpenLDAP slow)
- From: Lee Revell <rlrevell@joe-job.com>
- Re: pthread_mutex_unlock (was Re: sched_yield() makes OpenLDAP slow)
- From: Howard Chu <hyc@symas.com>
- Re: pthread_mutex_unlock (was Re: sched_yield() makes OpenLDAP slow)
- From: Nick Piggin <nickpiggin@yahoo.com.au>
- Re: pthread_mutex_unlock (was Re: sched_yield() makes OpenLDAP slow)
- From: Howard Chu <hyc@symas.com>
- Re: pthread_mutex_unlock (was Re: sched_yield() makes OpenLDAP slow)
- From: Nick Piggin <nickpiggin@yahoo.com.au>
- Re: pthread_mutex_unlock (was Re: sched_yield() makes OpenLDAP slow)
- From: Howard Chu <hyc@symas.com>
- Re: pthread_mutex_unlock (was Re: sched_yield() makes OpenLDAP slow)
- From: Nick Piggin <nickpiggin@yahoo.com.au>
- Re: pthread_mutex_unlock (was Re: sched_yield() makes OpenLDAP slow)
- From: Howard Chu <hyc@symas.com>
- Re: pthread_mutex_unlock (was Re: sched_yield() makes OpenLDAP slow)
- From: "linux-os \(Dick Johnson\)" <linux-os@analogic.com>
- e100 oops on resume
- Prev by Date: [patch 1/4] net: Percpufy frequently used variables -- add percpu_counter_mod_bh
- Next by Date: Re: 2.6.16-rc1-mm3 (psmouse.c)
- Previous by thread: Re: pthread_mutex_unlock (was Re: sched_yield() makes OpenLDAP slow)
- Next by thread: Re: pthread_mutex_unlock (was Re: sched_yield() makes OpenLDAP slow)
- Index(es):
![]() |