Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: duane@and.zk3.dec.com (Andrew Duane USG)
Subject: Re: How to create kernel-level threads in Tru64 5.1?
Date: Mon, 10 Feb 2003 14:17:43 GMT	[thread overview]
Message-ID: <bwO1a.768$fx7.341@news.cpqcorp.net> (raw)
In-Reply-To: b20vpt$19u0$1@ulysses.noc.ntua.gr

In article <b20vpt$19u0$1@ulysses.noc.ntua.gr> "Ioannis E. Venetis" <iev@hpclab.ceid.upatras.gr> writes:

> I am a relative new user of an Alpha machine with Tru64 Unix 5.1. I am
> developing a user-level thread library and I need to create
> kernel-level threads that will be used as execution vehicles for the
> user-level threads. Under Linux I am using the clone() system call to
> do that. I would like to ask if there is a similar interface in Tru64
> Unix.  I have seen a piece of software that uses the thread_create(),
> thread_set_state() etc.  interface from the libmach.a library and I
> also found the prorotypes of kernel_thread(), kernel_thread_w_arg()
> etc. in /usr/sys/include/kern/threads.h. My problem is that I cannot
> find any documentation about these functions, I don't know if they are
> actually supported or if they are just low-level hacks that might work
> or not in future releases.

These prototypes are in fact kernel routines, and have no bearing on any
user level code you might be writing. 

Others have already spoken to POSIX threads and different flavors.
The kernel threads are created for you automatically as needed, there
is no need for you to do anything about them.

At a "high" level, there are two kinds of threads: one-on-one, where
each user thread has a kernel thread and scheduling is done by the kernel,
and NXM (n-by-m), where several user threads share a kernel thread, and
scheduling is done by the user at user level.

--

Andrew L. Duane (JOT-7)			duane@zk3.dec.com
HP/Compaq Corporation			Andrew.Duane@compaq.com
110 Spit Brook Road			Andrew.Duane@hp.com
M/S ZKO3-3/U14
Nashua, NH    03062-2698		(603)-884-1294



      parent reply	other threads:[~2003-02-10 14:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-07 18:57 How to create kernel-level threads in Tru64 5.1? Ioannis E. Venetis
2003-02-07 22:32 ` Joe Chung
2003-02-08 13:40   ` Ioannis E. Venetis
2003-02-11 15:09     ` David Butenhof
2003-02-14 15:55       ` Ioannis E. Venetis
2003-02-10 14:17 ` Andrew Duane USG [this message]
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