Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Bogus load data
- Date: Wed, 13 Sep 2006 08:21:43 +0900
- From: "Josh Glover" <jmglov@example.com>
- Subject: Re: [tlug] Bogus load data
- References: <d8fcc0800609120055u6c88d1bat3ff1cdaf9bfaf523@example.com> <87slix5el8.dancerj%dancer@example.com>
On 12/09/06, Junichi Uekawa <dancer@example.com> wrote:#include <sched.h> sched_yield() might give more interesting results; although it really depends on what you're after.Interesting. Since I basically want to ensure one or more context switches, it would probably be a good idea to put the sched_yield() call right before the sleep(). I don't want to lose the sleep() call--I like the fact that it introduces some time for the kernel to do other stuff, thus making my timings a little more random. And wow! sched_yield is actually POSIX! I figured it was just a Linux syscall, but this is great, because including it in my program will not cost me portability to other Unices. Cheers, Junichi! -Josh
- References:
- [tlug] Bogus load data
- From: Josh Glover
- Re: [tlug] Bogus load data
- From: Junichi Uekawa
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Bogus load data
- Next by Date: [tlug] Open Discourse v Private Replies followed by a Public Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . (Re: OT Posting)
- Previous by thread: Re: [tlug] Bogus load data
- Next by thread: [tlug] Read my Firefox's cache contents on Linux
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links