Return-Path: <root@fatcity.cts.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id h0KLqSY19947
 for <oracle-l@orafaq.net>; Mon, 20 Jan 2003 15:52:28 -0600
X-ClientAddr: 209.68.248.164
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id h0KLqSp19942
 for <oracle-l@orafaq.net>; Mon, 20 Jan 2003 15:52:28 -0600
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id KAA33803;
 Mon, 20 Jan 2003 10:35:58 -0800 (PST)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 00534E5B; Mon, 20 Jan 2003 10:19:20 -0800
Message-ID: <F001.00534E5B.20030120101920@fatcity.com>
Date: Mon, 20 Jan 2003 10:19:20 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Koivu, Lisa" <Lisa.Koivu@efairfield.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Koivu, Lisa" <Lisa.Koivu@efairfield.com>
Subject: RE: 100% CPU utilization, urgent
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 72; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/alternative;	boundary="----_=_NextPart_001_01C2C0AF.E0048E80"
------_=_NextPart_001_01C2C0AF.E0048E80
Content-Type: text/plain;
 charset="iso-8859-1"

Thanks Jeff for your detailed explanation.

(Can I please have Unix back now???!)

Have a great day. 
Lisa

-----Original Message-----
Sent: Monday, January 20, 2003 11:40 AM
To: Multiple recipients of list ORACLE-L




On Mon, 20 Jan 2003, Koivu, Lisa wrote:

> Thomas, thanks for your post.
>
> However I don't see where I can match the threads on NT to what I see in
> Task Manager.  Am I missing something?
>
> To be more explicit, here's what I've got:
>

Lisa,

The point you're missing is that Task Manager shows _processes_ and
the view is showing _threads_ . They're 2 distinct constructs.  In its
simplest sense a thread is an independently executing 'thread of
execution' from a main task. This is how you see one process for
ORACLE.EXE and its running multiple threads (PMON, SMON etc)
if you look at the process using a tool such as PVIEW or PSTAT.

Processes are spawned using the CreateProcess() API call and a process
then spins off multiple threads using another call such as
AfxBeginThread() (in C++). The threads all operate independently
of each other and the programmer must be careful when accessing
common areas of memory simultaneously by different threads. This is
why in a Dr. Watson dump you will see what each thread is doing
and one or more of them will usually be running WaitForSingleObject()
which is a WIN32 way of serializing access to shared _process_
memory.

Contrast this to the multi-process architecture that Oracle uses
on Unix. The shared memory stuctures are separate from each
individual _process_ and the processes use semaphores or
latches to serialize access to the external memory segment.

HTH

Jeff Herrick

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jeff Herrick
  INET: jherrick@igs.net

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

------_=_NextPart_001_01C2C0AF.E0048E80
Content-Type: text/html;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: 100% CPU utilization, urgent</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Thanks Jeff for your detailed explanation.</FONT>
</P>

<P><FONT SIZE=3D2>(Can I please have Unix back now???!)</FONT>
</P>

<P><FONT SIZE=3D2>Have a great day. </FONT>
<BR><FONT SIZE=3D2>Lisa</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Jeff Herrick [<A =
HREF=3D"mailto:jherrick@igs.net">mailto:jherrick@igs.net</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Monday, January 20, 2003 11:40 AM</FONT>
<BR><FONT SIZE=3D2>To: Multiple recipients of list ORACLE-L</FONT>
<BR><FONT SIZE=3D2>Subject: RE: 100% CPU utilization, urgent</FONT>
</P>
<BR>
<BR>
<BR>

<P><FONT SIZE=3D2>On Mon, 20 Jan 2003, Koivu, Lisa wrote:</FONT>
</P>

<P><FONT SIZE=3D2>&gt; Thomas, thanks for your post.</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; However I don't see where I can match the =
threads on NT to what I see in</FONT>
<BR><FONT SIZE=3D2>&gt; Task Manager.&nbsp; Am I missing =
something?</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2>&gt; To be more explicit, here's what I've =
got:</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
</P>

<P><FONT SIZE=3D2>Lisa,</FONT>
</P>

<P><FONT SIZE=3D2>The point you're missing is that Task Manager shows =
_processes_ and</FONT>
<BR><FONT SIZE=3D2>the view is showing _threads_ . They're 2 distinct =
constructs.&nbsp; In its</FONT>
<BR><FONT SIZE=3D2>simplest sense a thread is an independently =
executing 'thread of</FONT>
<BR><FONT SIZE=3D2>execution' from a main task. This is how you see one =
process for</FONT>
<BR><FONT SIZE=3D2>ORACLE.EXE and its running multiple threads (PMON, =
SMON etc)</FONT>
<BR><FONT SIZE=3D2>if you look at the process using a tool such as =
PVIEW or PSTAT.</FONT>
</P>

<P><FONT SIZE=3D2>Processes are spawned using the CreateProcess() API =
call and a process</FONT>
<BR><FONT SIZE=3D2>then spins off multiple threads using another call =
such as</FONT>
<BR><FONT SIZE=3D2>AfxBeginThread() (in C++). The threads all operate =
independently</FONT>
<BR><FONT SIZE=3D2>of each other and the programmer must be careful =
when accessing</FONT>
<BR><FONT SIZE=3D2>common areas of memory simultaneously by different =
threads. This is</FONT>
<BR><FONT SIZE=3D2>why in a Dr. Watson dump you will see what each =
thread is doing</FONT>
<BR><FONT SIZE=3D2>and one or more of them will usually be running =
WaitForSingleObject()</FONT>
<BR><FONT SIZE=3D2>which is a WIN32 way of serializing access to shared =
_process_</FONT>
<BR><FONT SIZE=3D2>memory.</FONT>
</P>

<P><FONT SIZE=3D2>Contrast this to the multi-process architecture that =
Oracle uses</FONT>
<BR><FONT SIZE=3D2>on Unix. The shared memory stuctures are separate =
from each</FONT>
<BR><FONT SIZE=3D2>individual _process_ and the processes use =
semaphores or</FONT>
<BR><FONT SIZE=3D2>latches to serialize access to the external memory =
segment.</FONT>
</P>

<P><FONT SIZE=3D2>HTH</FONT>
</P>

<P><FONT SIZE=3D2>Jeff Herrick</FONT>
</P>

<P><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Please see the official ORACLE-L FAQ: <A =
HREF=3D"http://www.orafaq.net" =
TARGET=3D"_blank">http://www.orafaq.net</A></FONT>
<BR><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Author: Jeff Herrick</FONT>
<BR><FONT SIZE=3D2>&nbsp; INET: jherrick@igs.net</FONT>
</P>

<P><FONT SIZE=3D2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- =
858-538-5051 <A HREF=3D"http://www.fatcity.com" =
TARGET=3D"_blank">http://www.fatcity.com</A></FONT>
<BR><FONT SIZE=3D2>San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Mailing list =
and web hosting services</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
------</FONT>
<BR><FONT SIZE=3D2>To REMOVE yourself from this mailing list, send an =
E-Mail message</FONT>
<BR><FONT SIZE=3D2>to: ListGuru@fatcity.com (note EXACT spelling of =
'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>the message BODY, include a line containing: UNSUB =
ORACLE-L</FONT>
<BR><FONT SIZE=3D2>(or the name of mailing list you want to be removed =
from).&nbsp; You may</FONT>
<BR><FONT SIZE=3D2>also send the HELP command for other information =
(like subscribing).</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C2C0AF.E0048E80--
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Koivu, Lisa
  INET: Lisa.Koivu@efairfield.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

