* OSF/1 v1.2 Threads User Level?
@ 1993-12-06 16:55 George P. Swanton
0 siblings, 0 replies; only message in thread
From: George P. Swanton @ 1993-12-06 16:55 UTC (permalink / raw)
Several weeks ago I posted a query to comp.unix.osf.osf1 similar to
the following. I received no informative response and am trying one
last time here.
Could someone answer the following question:
Are pthreads/cmathreads in DEC's OSF/1 v1.2 a userlevel implementation
or are they scheduled in the kernel??
The reason I ask is a very informal study I have done seems to indicate
that OSF/1 can switch slightly more rapidly between unix processes
than pthreads/cmathreads. This is not what I expected to see.
My belief was that pthreads/cmathreads were user level but profiling
shows calls to 'swtch_pri', which prof associates with (/usr/sde/
alpha/build/alpha.bl012/export/alpha/usr/include/mach/syscall_sw.h),
^^^^^^^
On a 3K/400, sitting in a loop such as
for(i = 0; i < 10000; i++)
sched/cmathread/pthread_yield()
Takes on average 192ms for cmathreads, 188ms for pthreads and
169ms for standard unix processes.
I was thinking perhaps all three abstractions are layered atop the
same Mach abstraction but threads have more layers. (?)
Can anyone comment?
George P Swanton
swanton@moose.usmcs.maine.edu
** Please [also] respond via email. Thank you.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1993-12-06 16:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-12-06 16:55 OSF/1 v1.2 Threads User Level? George P. Swanton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox