Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [nathanw_sa] basesrc/lib/libpthread
Module Name: basesrc
Committed By: thorpej
Date: Fri Nov 1 17:06:33 UTC 2002
Modified Files:
basesrc/lib/libpthread [nathanw_sa]: pthread.h pthread_sa.c
Log Message:
* Default to a 100mS round-robin timer; there are a great many
applications that assume concurrency even on a uniprocessor.
(These applications are, of course, broken, but there's not
much we can do about it.)
* Add pthread_getrrtimer_np() and pthread_setrrtimer_np() functions
which provide access to the round-robin timer to application programs.
Setting the rrtimer to 0 will disable timeslicing.
Per discussion with Loren Rittle (on libstdc++%gcc.gnu.org@localhost) and
Nathan Williams (privately). The 100mS default interval is chosen
because timeslicing is largely for user-visible parallelism, and
the 100mS interval results in less overhead while still providing
a reasonable amount of user-visible parallelism.
To generate a diff of this commit:
cvs rdiff -r1.1.2.15 -r1.1.2.16 basesrc/lib/libpthread/pthread.h
cvs rdiff -r1.1.2.31 -r1.1.2.32 basesrc/lib/libpthread/pthread_sa.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index