Nice explanation, thanks!

Tom

-----Original Message-----
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 14, 1999 11:43 AM
To: [EMAIL PROTECTED]
Subject: Re: Give The Difference at O.S./Hardware Level


Paresh Gheewala wrote:

> What is the exact difference bettween
>
> 1) Multi-Processing

More than one CPU in the same physical computer, which allows more than
one process to run at the same time.  In a native threads environment
(see below), you can also have a single process with active threads
running on more than one processor simultaneously.

>
> 2) Multi-Tasking

Generic term for running more than one thread of control ("task") within
a single process.  Multi-threading is now the more popular term, but
old-style minicomputer OSs (among others) used multi-tasking for this
same concept.

>
> 3) Multi-Treading
>

More than one thread of control running within the same process.  For
example, the JVM in which you run a servlet engine is multithreading,
because it can handle multiple requests at the same time.  You can
create your own threads in Java by using the Thread and Runnable
classes.

You will also hear about two variations on this theme -- "native
threads" are implemented inside the operating system itself, while
"green threads" are implemented at the application level (that is,
inside the guts of the JVM for Java).  Java implementations that use
native threads support can often have multiple threads running
simultaneously on a multi-processor system -- one thread per processor.

The difference between native and green threads is pretty much
transparent from the application programming level, although it does
affect performance.  Historically, there have also been more threading
bugs in native threads than in green threads, but this is getting better
on most OSs.

>
> Paresh

Craig McClanahan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to