Subject: Re: What is happening with libpthread???
To: None <shane@border.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: current-users
Date: 01/22/1997 12:25:19
On Tue, 21 Jan 1997 07:31:58 -0500 
 shane@border.com wrote:

 >   What is the difference between multi-tasking and multi-threading?

Well, multi-tasking is the ability to run more than one process.  A
process has its own address space, among other things.

A thread is a "light-weight process" of sorts.  It has its own stack,
register state, etc., and is the entity which is scheduled for execution.

UNIX processes, as far as the kernel is concerned, have on thread.

In the Mach world, the terms are "task" and "thread".  Mach emulates
a UNIX process by creating a task with one thread of execution.

In Solaris, processes are stripped down somewhat, having only the
address space and other "common to all threads" info.  "Threads" 
are described with an lwp (light-weight process :-), which carry
stack, register, etc., state.

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939