From: swanton@puffin.usmcs.maine.edu (George P. Swanton)
Subject: OSF/1 v1.2 Threads User Level?
Date: 6 Dec 1993 10:55:53 -0600 [thread overview]
Message-ID: <9312061655.AA22520@puffin.usmcs.maine.edu> (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.
reply other threads:[~1993-12-06 16:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox