From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b48c7f27e622a82f,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-12-06 19:15:22 PST Path: gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!not-for-mail From: swanton@puffin.usmcs.maine.edu (George P. Swanton) Newsgroups: comp.sys.dec Subject: OSF/1 v1.2 Threads User Level? Date: 6 Dec 1993 10:55:53 -0600 Organization: UTexas Mail-to-News Gateway Sender: daemon@cs.utexas.edu Message-ID: <9312061655.AA22520@puffin.usmcs.maine.edu> NNTP-Posting-Host: cs.utexas.edu 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.