O From:	SMTP%"texsun!montagar.com!fileserv@cs.utexas.edu" 25-JUN-1993 18:21:17.17  To:	EVERHART CC:	 Subj:	RWASTED.SHR_1   7 Message-Id: <9306251911.AA19234@texsun.Central.Sun.COM> # Date: Fri, 25 Jun 1993 13:59:21 CDT 6 Sender: texsun!montagar.com!fileserv-Mgr@cs.utexas.edu9 Errors-To: texsun!montagar.com!fileserv-Mgr@cs.utexas.edu  Warnings-To: <> 4 From: texsun!montagar.com!fileserv-Mgr@cs.utexas.edu4 Reply-To: texsun!montagar.com!fileserv@cs.utexas.edu Subject: RWASTED.SHR_1 To: EVERHART@arisia.gce.com   6 $! ------------------ CUT HERE -----------------------( $ v='f$verify(f$trnlnm("SHARE_VERIFY"))' $!A $! This archive created by VMS_SHARE Version 7.2-007  22-FEB-1990 1 $!   On 24-JUN-1993 08:55:04.89   By user DAVIDC   $! $! This VMS_SHARE Written by: * $!    Andy Harper, Kings College London UK $! $! Acknowledgements to: + $!    James Gray       - Original VMS_SHARE < $!    Michael Bednarek - Original Concept and implementation $!< $! TO UNPACK THIS SHARE FILE, CONCATENATE ALL PARTS IN ORDER2 $! AND EXECUTE AS A COMMAND PROCEDURE  (  @name  ) $!9 $! THE FOLLOWING FILE(S) WILL BE CREATED AFTER UNPACKING:  $!       1. RWASTED.PS;1 $!
 $set="set"$ $set symbol/scope=(nolocal,noglobal)? $f=f$parse("SHARE_TEMP","SYS$SCRATCH:.TMP_"+f$getjpi("","PID")) # $e="write sys$error  ""%UNPACK"", " # $w="write sys$output ""%UNPACK"", " ) $ if f$trnlnm("SHARE_LOG") then $ w = "!"  $ ve=f$getsyi("version")7 $ if ve-f$extract(0,1,ve) .ges. "4.4" then $ goto START * $ e "-E-OLDVER, Must run at least VMS 4.4" $ v=f$verify(v) 	 $ exit 44 . $UNPACK: SUBROUTINE ! P1=filename, P2=checksum2 $ if f$search(P1) .eqs. "" then $ goto file_absent, $ e "-W-EXISTS, File ''P1' exists. Skipped."
 $ delete 'f'*  $ exit
 $file_absent: + $ if f$parse(P1) .nes. "" then $ goto dirok  $ dn=f$parse(P1,,,"DIRECTORY")* $ w "-I-CREDIR, Creating directory ''dn'." $ create/dir 'dn'  $ if $status then $ goto dirok: $ e "-E-CREDIRFAIL, Unable to create ''dn'. File skipped."
 $ delete 'f'*  $ exit $dirok: ( $ w "-I-PROCESS, Processing file ''P1'."7 $ if .not. f$verify() then $ define/user sys$output nl: 1 $ EDIT/TPU/NOSEC/NODIS/COM=SYS$INPUT 'f'/OUT='P1' H PROCEDURE Unpacker ON_ERROR ENDON_ERROR;SET(FACILITY_NAME,"UNPACK");SET(M SUCCESS,OFF);SET(INFORMATIONAL,OFF);f:=GET_INFO(COMMAND_LINE,"file_name");b:= E CREATE_BUFFER(f,f);p:=SPAN(" ")@r&LINE_END;POSITION(BEGINNING_OF(b)); F LOOP EXITIF SEARCH(p,FORWARD)=0;POSITION(r);ERASE(r);ENDLOOP;POSITION(M BEGINNING_OF(b));g:=0;LOOP EXITIF MARK(NONE)=END_OF(b);x:=ERASE_CHARACTER(1); K IF g=0 THEN IF x="X" THEN MOVE_VERTICAL(1);ENDIF;IF x="V" THEN APPEND_LINE; K MOVE_HORIZONTAL(-CURRENT_OFFSET);MOVE_VERTICAL(1);ENDIF;IF x="+" THEN g:=1; M ERASE_LINE;ENDIF;ELSE IF x="-" THEN IF INDEX(CURRENT_LINE,"+-+-+-+-+-+-+-+")= G 1 THEN g:=0;ENDIF;ENDIF;ERASE_LINE;ENDIF;ENDLOOP;t:="0123456789ABCDEF"; M POSITION(BEGINNING_OF(b));LOOP r:=SEARCH("`",FORWARD);EXITIF r=0;POSITION(r); M ERASE(r);x1:=INDEX(t,ERASE_CHARACTER(1))-1;x2:=INDEX(t,ERASE_CHARACTER(1))-1; F COPY_TEXT(ASCII(16*x1+x2));ENDLOOP;WRITE_FILE(b,GET_INFO(COMMAND_LINE,+ "output_file"));ENDPROCEDURE;Unpacker;QUIT;  $ delete/nolog 'f'*  $ CHECKSUM 'P1' + $ IF CHECKSUM$CHECKSUM .eqs. P2 THEN $ EXIT - $ e "-E-CHKSMFAIL, Checksum of ''P1' failed."  $ ENDSUBROUTINE  $START:  $ create 'f' X%!PS-Adobe-2.1  X%%Creator: DECwrite V2.0 9 X%%+Copyright (c) 1990 DIGITAL EQUIPMENT CORPORATION. `20  X%%+All Rights Reserved. X%%DocumentFonts: (atend)  X%%EndComments X%%BeginProcSet DEC_WRITE 1.07L X/DEC_WRITE_dict 150 dict def DEC_WRITE_dict begin/$D save def/$I 0 def/$S 0L Xdef/$C matrix def/$R matrix def/$L matrix def/$E matrix def/pat1`7B/px exchM Xdef/pa 8 array def 0 1 7`7B/py exch def/pw 4 string def 0 1 3`7Bpw exch px p  Vy 1M Xgetinterval putinterval`7Dfor pa py pw put`7Dfor`7Ddef/pat2`7B/pi exch def/c  Vflag H Xexch def save cflag 1 eq`7Beoclip`7D`7Bclip`7Difelse newpath`7BclippathM Xpathbbox`7Dstopped not`7B/ph exch def/pw exch def/py exch def/px exch def/px  V pxD X3072 div floor 3072 mul def/py py 3072 div floor 3072 mul def px pyJ Xtranslate/pw pw px sub 3072 div floor 1 add cvi def/ph ph py sub 3072 divL Xfloor 1 add cvi def pw 3072 mul ph 3072 mul scale/pw pw 32 mul def/ph ph 32M Xmul def/px 0 def/py 0 def pw ph pi`5Bpw 0 0 ph 0 0`5D`7Bpa py get/px px 32 a  Vdd J Xdef px pw ge`7B/px 0 def/py py 1 add 8 mod def`7Dif`7Dpi type/booleantypeM Xeq`7Bimagemask`7D`7Bimage`7Difelse`7Dif restore`7Ddef/PS`7B/_op exch def/_np  V 8 string defK X0 1 7`7B/_ii exch def/num _op _ii get def _np 7 _ii sub num -4 bitshift PX M Xnum 15 and 4 bitshift -4 bitshift PX 4 bitshift or put`7Dfor _np`7Ddef/PX`7B  V`5B15 7M X11 3 13 5 9 1 14 6 10 2 12 4 8 0`5Dexch get`7Ddef/FR`7B0.7200 0 $E defaultma  Vtrix E Xdtransform/yres exch def/xres exch def xres dup mul yres dup mul add M Xsqrt`7Ddef/SU`7B/_sf exch def/_sa exch def/_cs exch def/_mm $C currentmatrix L Xdef/rm _sa $R rotate def/sm _cs dup $L scale def sm rm _mm _mm concatmatrixK X_mm concatmatrix pop 1 0 _mm dtransform/y1 exch def/x1 exch def/_vl x1 dup L Xmul y1 dup mul add sqrt def/_fq FR _vl div def/_na y1 x1 atan def _mm 2 getD X_mm 1 get mul _mm 0 get _mm 3 get mul sub 0 gt`7B`7Bneg`7D/_sf loadM Xconcatprocs/_sf exch def`7Dif _fq _na/_sf load setscreen`7Ddef/BO`7B/_yb exc  VhJ Xdef/_xb exch def/_bv _bs _yb _bw mul _xb 8 idiv add get def/_mk 1 7 _xb 8L Xmod sub bitshift def _bv _mk and 0 ne $I 1 eq xor`7Ddef/BF`7BDEC_WRITE_dictL Xbegin/_yy exch def/_xx exch def/_xi _xx 1 add 2 div _bp mul cvi def/_yi _yyL X1 add 2 div _bp mul cvi def _xi _yi BO`7B/_nb _nb 1 add def 1`7D`7B/_fb _fb V 1 add M Xdef 0`7Difelse end`7Ddef/setpattern`7B/_cz exch def/_bw exch def/_bp exch de  Vf/_bsM Xexch PS def/_nb 0 def/_fb 0 def _cz 0/BF load SU`7B`7Dsettransfer _fb _fb _n  VbC Xadd div setgray/$S 1 def`7Ddef/invertpattern`7B$S 0 eq`7B`7B1 exch L Xsub`7Dcurrenttransfer concatprocs settransfer`7Dif`7Ddef/invertscreen`7B/$I V 1 L Xdef/$S 0 def`7Ddef/revertscreen`7B/$I 0 def`7Ddef/setrect`7B/$h exch def/$w V exchK Xdef/$y exch def/$x exch def newpath $x $y moveto $w $x add $y lineto $w $x L Xadd $h $y add lineto $x $h $y add lineto closepath`7Ddef/concatprocs`7B/_p2J Xexch cvlit def/_p1 exch cvlit def/_pn _p1 length _p2 length add array def9 X_pn 0 _p1 putinterval _pn _p1 length _p2 putinterval _pn B Xcvx`7Ddef/OF/findfont load def/findfont`7Bdup DEC_WRITE_dict exchF Xknown`7BDEC_WRITE_dict exch get`7Dif DEC_WRITE_dict/OF get exec`7Ddef Xmark/ISOLatin1Encoding`20? X8#000 1 8#001`7BStandardEncoding exch get`7Dfor /emdash/endash L X8#004 1 8#025`7BStandardEncoding exch get`7Dfor /quotedblleft/quotedblrightE X8#030 1 8#054`7BStandardEncoding exch get`7Dfor /minus 8#056 1 8#217 M X`7BStandardEncoding exch get`7Dfor/dotlessi 8#301 1 8#317`7BStandardEncoding  V`20M Xexch get`7Dfor/space/exclamdown/cent/sterling/currency/yen/brokenbar/section K X/dieresis/copyright/ordfeminine/guillemotleft/logicalnot/hyphen/registered F X/macron/degree/plusminus/twosuperior/threesuperior/acute/mu/paragraphK X/periodcentered/cedilla/onesuperior/ordmasculine/guillemotright/onequarter E X/onehalf/threequarters/questiondown/Agrave/Aacute/Acircumflex/Atilde H X/Adieresis/Aring/AE/Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis/IgraveJ X/Iacute/Icircumflex/Idieresis/Eth/Ntilde/Ograve/Oacute/Ocircumflex/OtildeL X/Odieresis/multiply/Oslash/Ugrave/Uacute/Ucircumflex/Udieresis/Yacute/ThornI X/germandbls/agrave/aacute/acircumflex/atilde/adieresis/aring/ae/ccedilla I X/egrave/eacute/ecircumflex/edieresis/igrave/iacute/icircumflex/idieresis L X/eth/ntilde/ograve/oacute/ocircumflex/otilde/odieresis/divide/oslash/ugrave5 X/uacute/ucircumflex/udieresis/yacute/thorn/ydieresis $ X256 array astore def cleartomark`20M X/encodefont`7Bfindfont dup maxlength dict begin`7B1 index/FID ne`7Bdef`7D`7B  VpopJ Xpop`7Difelse`7Dforall/Encoding exch def dup/FontName exch def currentdictM Xdefinefont end`7Ddef/loads`7B/$/ISOLatin1Encoding load def/&/encodefont load I Xdef/*/invertpattern load def/+/revertscreen load def/-/invertscreen load L Xdef/:/concatprocs load def/`5E/setpattern load def/`7E/pat1 load def/_/pat2L Xload def/@/setrect load def/A/arcn load def/B/ashow load def/C/curveto loadH Xdef/D/def load def/E/eofill load def/F/findfont load def/G/setgray loadF Xdef/H/closepath load def/I/clip load def/J/fill load def/K/kshow loadI Xdef/L/lineto load def/M/moveto load def/N/newpath load def/O/rotate loadDI Xdef/P/pop load def/R/grestore load def/S/gsave load def/T/translate loaduC Xdef/U/sub load def/V/div load def/W/widthshow load def/X/exch loadeJ Xdef/Y/awidthshow load def/a/save load def/c/setlinecap load def/d/setdashJ Xload def/e/restore load def/f/setfont load def/g/initclip load def/h/showG Xload def/i/setmiterlimit load def/j/setlinejoin load def/k/stroke load(= Xdef/l/rlineto load def/m/rmoveto load def/n/currentfont loadSD Xdef/o/scalefont load def/p/currentpoint load def/q/setrgbcolor loadA Xdef/r/currenttransfer load def/s/scale load def/t/setmatrix loadrA Xdef/u/settransfer load def/w/setlinewidth load def/x/matrix loada# Xdef/y/currentmatrix load def`7Ddef  Xend
 X%%EndProcSetk X%%EndProlog Xp
 X%%BeginSetupa XDEC_WRITE_dict beginT Xloads Xversion cvi 23.0 gt `7B& Xcurrentdict `7Bdup type /arraytype eq4 X`7Bbind def`7D `7Bpop pop`7D ifelse`7D forall`7D if X0.0100 0.0100 s XR X%%EndSetup  X%%Page: 1 1 X/$P a D Xg N X90 Oe XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 AS
 Xctm_cached t+ X/ctm_cached x y D X71160 -52968 Tr X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached t% X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 Ay
 Xctm_cached t  X/ctm_cached x y D
 X8328 -8328 T  X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached te XH XS X1200 w= X0 c X0 j
 X0.625 G k XR XN XS X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $e X/Times-Roman & Pt" X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 7502h0 V6\2550772           Spring'93 DECUS Symposia) h X59507 -1113 M X(Slide No. ) hy X(1) h X288 -2412 M X-7200 57415 T Xs X10800 -10833 Tk XN X0 G
 X6944 -1638 Mb X/Helvetica-Bold-ISOLatin1 $ X/Helvetica-Bold & P% X/Helvetica-Bold-ISOLatin1 F 1800 o feJ X(Resource Waits in the OpenVMS Operating System                       ) h X27900 -5638 M X(orM V                                                                         `20I# V                               ) h)
 X9048 -9638 MN/ X(What to do when you R\255WASTed by OpenVMS) h  X15149 -17838 M," X/Times-Roman-ISOLatin1 F 1800 o f& X(DECUS Spring '93 Atlanta Symposia) h X26300 -20488 MI
 X(VS060) h X22826 -24938 MO X(David L. Cathey) h X18252 -26988 MA X(Montagar Software Concepts) hC X22324 -29038 MT X(P. O. Box 260772) hV X20300 -31088 MI X(Plano, TX  75026\2550772) hE X23176 -34338 ME X(\(214\) 618\2552117) h X20397 -36388 MT X(davidc@montagar.com) h X-10800 10833 TT X 	 XshowpageR X$P eN X+ X%%Page: 2 2 X/$P a D Xg N X90 O; XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 AN
 Xctm_cached tP X/ctm_cached x y D X71160 -52968 TS X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached tT X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 A2
 Xctm_cached tE X/ctm_cached x y D
 X8328 -8328 Tt X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached te XH XS X1200 wH X0 c X0 j
 X0.625 G k XR XN XM X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $. X/Times-Roman & P " X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 7502R0 V6\2550772           Spring'93 DECUS Symposia) h X59507 -1113 M X(Slide No. ) hs X(2) h X288 -2412 M X-7200 57415 T XR X10800 -10833 T  XN X0 G X20898 -2088 M X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o fr X(Session Outline) h X288 -8638 M X/Symbol F 1800 o fx	 X(\267) h 
 X3168 -8638 M3" X/Times-Roman-ISOLatin1 F 1800 o f X(What are "Resource Waits") h
 X288 -14288 M2 X/Symbol F 1800 o ff	 X(\267) h  X3168 -14288 M" X/Times-Roman-ISOLatin1 F 1800 o f X(Resource Waits and MUTEXes) he
 X288 -19938 Mh X/Symbol F 1800 o fx	 X(\267) hx X3168 -19938 M" X/Times-Roman-ISOLatin1 F 1800 o f" X(RWAST causes and descriptions) h
 X288 -25588 Mw X/Symbol F 1800 o fr	 X(\267) hd X3168 -25588 M" X/Times-Roman-ISOLatin1 F 1800 o fD X(Using SDA \(System Dump Analyzer\) to determine causes of RWAST) h
 X288 -31238 Mp X/Symbol F 1800 o f7	 X(\267) hp X3168 -31238 M" X/Times-Roman-ISOLatin1 F 1800 o f$ X(Breaking processes out of RWAST) h
 X288 -36888 Mm X/Symbol F 1800 o fs	 X(\267) ho X3168 -36888 M" X/Times-Roman-ISOLatin1 F 1800 o f+ X(Getting tough:  Brute force approaches) h7 X-10800 10833 Ti Xi	 Xshowpagem X$P e  Xi X%%Page: 3 3 X/$P a D Xg N X90 Ou XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 A`
 Xctm_cached tf X/ctm_cached x y D X71160 -52968 T  X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached td X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 A/
 Xctm_cached tm X/ctm_cached x y D
 X8328 -8328 Tr X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached to XH XS X1200 wc X0 c X0 j
 X0.625 G k XR XN Xy X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $q X/Times-Roman & P " X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 7502c0 V6\2550772           Spring'93 DECUS Symposia) h X59507 -1113 M X(Slide No. ) hb X(3) h X288 -2412 M X-7200 57415 T X_ X10800 -10833 Td XN X0 G X14736 -2088 M X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o ff X(What is a "Resource Wait") h X288 -8638 M X/Symbol F 1800 o fc	 X(\267) h_
 X3168 -8638 Mb" X/Times-Roman-ISOLatin1 F 1800 o fF X(A Resource Wait is a type of MUTEX \(MUTual EXclusion semaphore\)) h X3168 -11288 M) X(within the OpenVMS Operating System.) h 
 X288 -16338 Mt X/Symbol F 1800 o f 	 X(\267) hv X3168 -16338 M" X/Times-Roman-ISOLatin1 F 1800 o fJ X(Resource Waits are a set of events that suspends a process until some) h X3168 -18988 M< X(process or operating system resource becomes available.) h
 X288 -24038 Mw X/Symbol F 1800 o fh	 X(\267) hh X3168 -24038 M" X/Times-Roman-ISOLatin1 F 1800 o fL X(Typically, the resource, or enough of a resource, becomes available and) h X3168 -26688 M X(the process is resumed.) h
 X288 -31738 Mh X/Symbol F 1800 o f0	 X(\267) he X3168 -31738 M" X/Times-Roman-ISOLatin1 F 1800 o fH X(MUTEXes and Resource Waits are not always "evil".  They are used to) h X3168 -34388 ML X(provide a form of flow control, or allow a process to maximize throughput) V h7 X3168 -37038 M& X(by utilizing all available quota.) h X-10800 10833 Tr Xc	 Xshowpageg X$P er Xu X%%Page: 4 4 X/$P a D Xg N X90 O0 XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 Aa
 Xctm_cached t  X/ctm_cached x y D X71160 -52968 Ta X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached tx X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 Ap
 Xctm_cached ti X/ctm_cached x y D
 X8328 -8328 Tr X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached t/ XH XS X1200 wt X0 c X0 j
 X0.625 G k XR XN Xd X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $/ X/Times-Roman & Pi" X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 7502 0 V6\2550772           Spring'93 DECUS Symposia) h X59507 -1113 M X(Slide No. ) he X(4) h X288 -2412 M X-7200 57415 T Xf X10800 -10833 Tu XN X0 G X12768 -2088 M X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o fr X(Resource Waits and MUTEXes) hc X288 -6238 M X/Symbol F 1800 o fo	 X(\267) he
 X3168 -6238 Mi" X/Times-Roman-ISOLatin1 F 1800 o fE X(A MUTEX is a synchronization mechanism \(similar to a Lock, i.e.) hr
 X3168 -8288 MrL X($ENQ/$DEQ\) that allows protecting an operating system resource without) h X3168 -10338 M7 X(blocking all other activity by using elevated IPL.) hd
 X288 -14788 M  X/Symbol F 1800 o f/	 X(\267) hI X3168 -14788 M" X/Times-Roman-ISOLatin1 F 1800 o fC X(A MUTEX is implemented via a longword data cell in the OpenVMS) h  X3168 -16838 MK X(executive.  See "VMS Internals and Data Structures V5.2", Chapter 8.5,) hr X3168 -18888 MJ X(page 196, or "Alpha Internals and Data Structures", Chapter 9.7, page) h X3168 -20938 M
 X(9\25550.) he
 X288 -25388 Mf X/Symbol F 1800 o f/	 X(\267) h  X3168 -25388 M" X/Times-Roman-ISOLatin1 F 1800 o f2 X(Examples of MUTEXes used in OpenVMS V5.5 are:) h X3168 -27138 M Xn 0.778 o f	 X(\002) h  X6048 -27138 M X(LNM$AL_MUTEX) ha X17568 -27138 Ma X23328 -27138 Md X29088 -27138 Ma X(Logical Name Table MUTEX) ht X3168 -28788 M	 X(\002) hd X6048 -28788 M X(IOC$GL_MUTEX) h  X17568 -28788 Mr X23328 -28788 Mo X29088 -28788 Mt X(I/O Database) hw X3168 -30438 M	 X(\002) h  X6048 -30438 M X(EXE$GL_CEBMTX) h X23328 -30438 Ml X29088 -30438 M/ X(Common Event Block Queue) ht X3168 -32088 M	 X(\002) ha X6048 -32088 M X(SMP$GL_CPU_MUTEX) ho X23328 -32088 Mc X29088 -32088 Ma X(CPU Database Queue) hs X3168 -33738 M	 X(\002) hr X6048 -33738 M X(EXE$GL_PGDYNMTX) h X23328 -33738 M  X29088 -33738 Mr X(Paged Dynamic Memory) h% X3168 -35388 M	 X(\002) h  X6048 -35388 M X(EXE$GL_GSDMTX) h X23328 -35388 Mv X29088 -35388 Mt$ X(Global Section Descriptor Queue) h X3168 -37038 M	 X(\002) hp X6048 -37038 M X(CIA$GL_MUTEX) h0 X17568 -37038 MR X23328 -37038 M% X29088 -37038 Ma( X(Cumulative Intrusion Analysis Queue) h X3168 -38688 M	 X(\002) hs X6048 -38688 M X(EXE$GL_BASIMGMTX) h_ X23328 -38688 M1 X29088 -38688 M0) X(Base OpenVMS Image \(Loaded Images\)) h/ X28800 -41988 M  X-10800 10833 T1 X 	 Xshowpage0 X$P e- X  X%%Page: 5 5 X/$P a D Xg N X90 OD XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 AH
 Xctm_cached t  X/ctm_cached x y D X71160 -52968 T7 X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached t- X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 A0
 Xctm_cached t. X/ctm_cached x y D
 X8328 -8328 T, X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached t  XH XS X1200 wC X0 c X0 j
 X0.625 G k XR XN Xl X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $3 X/Times-Roman & P4" X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 7502W0 V6\2550772           Spring'93 DECUS Symposia) h X59507 -1113 M X(Slide No. ) hr X(5) h X288 -2412 M X-7200 57415 T X  X10800 -10833 T  XN X0 G X12768 -2088 M X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o fS X(Resource Waits and MUTEXes) h  X288 -8638 M X/Symbol F 1400 o fo	 X(\267) h 
 X3168 -8638 Mn" X/Times-Roman-ISOLatin1 F 1800 o f@ X(The MUTEX longword is manipulated via the internal routines) h X3168 -10688 M* X(SCH$LOCKR, SCH$LOCKW, and SCH$UNLOCK.) h
 X288 -15138 MV X/Symbol F 1400 o f(	 X(\267) h7 X3168 -15138 M" X/Times-Roman-ISOLatin1 F 1800 o fG X(The MUTEX longword is divided up into two fields: Status and Owner) h  X3168 -17188 M X(Count.) hP X3168 -19238 M X3168 -21288 M X3168 -23338 M X3168 -25388 M X3168 -27438 M
 X288 -31888 M9 X/Symbol F 1400 o fP	 X(\267) hh X3168 -31888 M" X/Times-Roman-ISOLatin1 F 1800 o f X(Other related structures:) h X3168 -35138 M Xn 0.778 o f	 X(\002) h0 X6048 -35138 M Xn 1.286 o f X(PCB$W_MXTCNT) hy X23328 -35138 Mt+ X(Count of MUTEXes owned by this process) he X3168 -37788 M Xn 0.778 o f	 X(\002) h5 X6048 -37788 M Xn 1.286 o f X(PCB$L_EFWM) h8 X23328 -37788 M-, X(Address \(0x8nnnnnnn\) of pending MUTEX) h X28800 -41788 M  X-10800 10833 Ti X. X25272 -36216 29232 3384 @ XS X100 w X0 c X0 j X2 i	 X0.00 G k  XR XN X  X40824 -35064 M3 X0 G X(Owner Count) h X- XN X39600 -32904 M  X39600 -36288 L- XS X100 w X0 c X0 j X2 i	 X0.00 G k  XR XN XG X40104 -32256 M  X0 G X(15) hO Xi X53136 -32112 Md X0 G X(0) h Xd X37872 -32184 M  X0 G X(16) h  Xl X25344 -32256 M8 X0 G X(31) h1 X  XN X37368 -32832 M6 X37368 -36144 Le XS X100 w X0 c X0 j X2 i	 X0.00 G k" XR XN Xi X37872 -35064 M8 X0 G X(1) h X1 X37728 -37872 M  X0 G X(Write\255in\255progress or) ht X  X37728 -39960 Mo X0 G  X(Write\255pending status bit) h X  X29232 -34920 M  X0 G X(MBZ) h X6 XS XN X/ctm_cached x y D X10619 -5868 T X1116 1116 s X0 0 1 -178 -362 A
 Xctm_cached t8 XS X100 w X0 c X0 j X2 i	 X0.00 G k3 XR XR XM XS XN X/ctm_cached x y D X12420 -5941 T
 X469 469 s X0 0 1 184 -4 A)
 Xctm_cached ta XS X100 w X0 c X0 j X2 i	 X0.00 G kl XR XR X7 XS XN X/ctm_cached x y D
 X9011 -5759 T-
 X378 378 s X0 0 1 -169 -383 A
 Xctm_cached to XS X100 w X0 c X0 j X2 i	 X0.00 G k0 XR XR X2 XS XN X/ctm_cached x y D X10260 -5472 T
 X180 180 s X0 0 1 90 -270 A
 Xctm_cached t  XS	 X0.00 G J  XR XH XS X100 w X0 c X0 j X2 i	 X0.00 G kP XR XR X/ XS XN X/ctm_cached x y D X10980 -5472 T
 X180 180 s X0 0 1 90 -270 A
 Xctm_cached t` XS	 X0.00 G Jf XR XH XS X100 w X0 c X0 j X2 i	 X0.00 G k0 XR XR X0 XS XN X/ctm_cached x y D X10584 -5904 T
 X228 228 s X0 0 1 90 -270 A
 Xctm_cached t  XH XS X100 w X0 c X0 j X2 i	 X0.00 G k  XR XR X1	 Xshowpage  X$P e- X  X%%Page: 6 6 X/$P a D Xg N X90 O  XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 A8
 Xctm_cached te X/ctm_cached x y D X71160 -52968 T  X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached ti X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 A0
 Xctm_cached t  X/ctm_cached x y D
 X8328 -8328 Th X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached t- XH XS X1200 w4 X0 c X0 j
 X0.625 G k XR XN XG X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $e X/Times-Roman & P2" X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 7502o0 V6\2550772           Spring'93 DECUS Symposia) h X59507 -1113 M X(Slide No. ) he X(6) h X288 -2412 M X-7200 57415 T Xe X10800 -10833 Tg XN X0 G X12001 -2088 M X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o f ! X(Example of Accessing a MUTEX) ht X288 -5938 M
 X6048 -5938 Mo X/Courier-ISOLatin1 $6
 X/Courier & Pr X/Courier-ISOLatin1 F 1400 o f2 X(; Note that this code must be in Kernel mode,) h X288 -7588 M
 X6048 -7588 M = X(; in order to access the MUTEX data cell for R/W access.) hr X288 -9238 M
 X6048 -9238 Mr X(; ) he
 X288 -10888 M) X6048 -10888 M0 X(; Grab the Intrusion Queue mutex, so we can) h
 X288 -12538 M  X6048 -12538 M X(; scan it safely...) h
 X288 -14188 M 
 X288 -15838 MU X6048 -15838 M X11808 -15838 Ma
 X(moval) h X17568 -15838 Mt X(g`5ECIA$GL_MUTEX,r0) h
 X288 -17488 M  X6048 -17488 M X11808 -17488 Mt X(jsb) h X17568 -17488 M7 X23328 -17488 M  X(g`5ESCH$LOCKW) h X34848 -17488 Mh X(; Lock MUTEX) h 
 X288 -19138 M 
 X288 -20788 MP X6048 -20788 M X11808 -20788 M 	 X(movl) ha X17568 -20788 M05 X(g`5ECIA$GQ_INTRUDER,r3 ; Get first intrusion blk) h 
 X288 -22438 My X6048 -22438 M X11808 -22438 Ms
 X(moval) h X17568 -22438 M 2 X(g`5ECIA$GQ_INTRUDER,r4 ; Get listhead address) h
 X288 -24088 M8 X6048 -24088 M X(1$:) h X11808 -24088 M8	 X(cmpl) hr X17568 -24088 M0
 X(r3,r4) h X23328 -24088 M  X29088 -24088 M  X34848 -24088 M0 X(; If r3 is listhead, bail) h
 X288 -25738 M  X6048 -25738 M X11808 -25738 Mt	 X(beql) hi X17568 -25738 M/ X(5$) ha
 X288 -27388 M1 X6048 -27388 M X11808 -27388 Ma X(...) h X17568 -27388 Mx X23328 -27388 MX X29088 -27388 M2 X34848 -27388 M' X(; Do lots of neat stuff) h
 X288 -29038 M  X6048 -29038 M X11808 -29038 M-	 X(movl) hT X17568 -29038 M34 X(CIA$L_FLINK\(r3\),r3   ; Get next intrusion blk) h
 X288 -30688 Md X6048 -30688 M X11808 -30688 M0 X(brw) h X17568 -30688 Md X(1$) h 
 X288 -32338 MM X6048 -32338 M X(5$:) h
 X288 -33988 M  X6048 -33988 M X11808 -33988 M 
 X(moval) h X17568 -33988 Mn X(g`5ECIA$GL_MUTEX,r0) h X34848 -33988 M  X(; Unlock MUTEX) h 
 X288 -35638 M\ X6048 -35638 M X11808 -35638 Mt X(jsb) h X17568 -35638 M) X23328 -35638 MM X(g`5ESCH$UNLOCK) hr X-10800 10833 Tg Xe	 Xshowpage  X$P e8 X4 X%%Page: 7 7 X/$P a D Xg N X90 O  XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 Ai
 Xctm_cached ta X/ctm_cached x y D X71160 -52968 T  X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached tr X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 Aa
 Xctm_cached th X/ctm_cached x y D
 X8328 -8328 Th X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached te XH XS X1200 w  X0 c X0 j
 X0.625 G k XR XN X3 X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $E X/Times-Roman & P " X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 750280 V6\2550772           Spring'93 DECUS Symposia) h X59507 -1113 M X(Slide No. ) h2 X(7) h X288 -2412 M X-7200 57415 T X  X10800 -10833 T  XN X0 G X12768 -2088 M X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o f$ X(Resource Waits and MUTEXes) h2 X288 -8638 M X/Symbol F 1400 o fk	 X(\267) h 
 X3168 -8638 M " X/Times-Roman-ISOLatin1 F 1800 o fH X(Resource Waits are seen when a process requests an operating system) h X3168 -10688 ML X(resource or a process resource \(quota\), and there is not enough.  The) h X3168 -12738 MK X(process will be put into an MWAIT state, and the cause for the wait is) hG X3168 -14788 MG X(placed in the Event Flag Wait Mask \(IDSM, Chapter 12, page 283\).) h 
 X288 -19238 M2 X/Symbol F 1400 o f 	 X(\267) hT X3168 -19238 M" X/Times-Roman-ISOLatin1 F 1800 o fM X(A process can be set to disallow placement into a Resource Wait by setting)  V h  X3168 -21288 M= X(the Resource Wait Mode using the $SETRWM system service.) he X3168 -23338 M X3168 -25388 MM X(Note: This will not completely disable all Resource Waits.  It will prevent  V) h X3168 -27438 M% X(most cases.  More on this later!) hT
 X288 -31888 M  X/Symbol F 1400 o fc	 X(\267) h/ X3168 -31888 M" X/Times-Roman-ISOLatin1 F 1800 o fH X(Processes in a resource wait are identified by "SHOW SYSTEM" with a) h X3168 -33938 M! X(state starting with "RWxxx".) hh X28800 -39738 M8 X-10800 10833 T0 X 	 Xshowpage  X$P e  Xm X%%Page: 8 8 X/$P a D Xg N X90 O0 XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 A/
 Xctm_cached tL X/ctm_cached x y D X71160 -52968 T- X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached t, X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 A7
 Xctm_cached tr X/ctm_cached x y D
 X8328 -8328 T1 X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached t2 XH XS X1200 w1 X0 c X0 j
 X0.625 G k XR XN X0 X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $a X/Times-Roman & P(" X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 7502t0 V6\2550772           Spring'93 DECUS Symposia) h X59507 -1113 M X(Slide No. ) h3 X(8) h X288 -2412 M X-7200 57415 T X  X10800 -10833 T2 XN X0 G X12768 -2088 M X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o f  X(Resource Waits and MUTEXes) h  X288 -6238 M X/Symbol F 1400 o f3	 X(\267) hM
 X3168 -6238 M " X/Times-Roman-ISOLatin1 F 1800 o fE X(OpenVMS V5.x defines these and other Resource Waits \(defined in) h1
 X3168 -8288 M78 X($RSNDEF in the macro library SYS$LIBRARY:LIB.MLB\):) h X3168 -10338 M X3168 -12388 M2 X(      State     Reason Code             Value) h X34848 -12388 Mf X(Meaning) h X3168 -16538 M Xn 0.778 o f	 X(\002) hX X6048 -16538 M
 X(RWAST) h X11808 -16538 M  X(RSN$_ASTWAIT) h2 X23328 -16538 M8 X29088 -16538 M  X(1) h X34848 -16538 M- X(Wait for AST event) hn X3168 -18188 M	 X(\002) hh X6048 -18188 M
 X(RWMBX) h X11808 -18188 M2 X(RSN$_MAILBOX) h4 X23328 -18188 M0 X29088 -18188 M0 X(2) h X34848 -18188 M8 X(Mailbox I/O) h X3168 -19838 M	 X(\002) h  X6048 -19838 M
 X(RWNPG) h X11808 -19838 Mw X(RSN$_NPDYNMEM) h X29088 -19838 MN X(3) h X34848 -19838 M0 X(Nonpaged Dynamic Memory) h X3168 -21488 M	 X(\002) h8 X6048 -21488 M
 X(RWPAG) h X11808 -21488 M5 X(RSN$_PGDYNMEM) h X29088 -21488 M- X(5) h X34848 -21488 Me X(Paged Dynamic Memory) h2 X3168 -23138 M	 X(\002) h  X6048 -23138 M
 X(RWMPE) h X11808 -23138 M7 X(RSN$_MPLEMPTY) h X29088 -23138 Ms X(11) h  X34848 -23138 M ' X(Waiting for Modified List to empty) hh X3168 -24788 M	 X(\002) hG X6048 -24788 M
 X(RWMPB) h X11808 -24788 M1 X(RSN$_MPWBUSY) h  X23328 -24788 M7 X29088 -24788 Mc X(12) hS X34848 -24788 M01 X(Modified Page Writer Busy                   ) hh X6048 -26438 MM X(                                                                        `20 5 V        \(ReallyWantedMyProcessBack \255 Pat O.\)) hD X3168 -30488 M	 X(\002) hs X6048 -30488 M
 X(RWSCS) h X11808 -30488 M0
 X(RSN$_SCS) h  X23328 -30488 M  X29088 -30488 MN X(13) ha X34848 -30488 M0# X(System Communications Services) hA X3168 -32738 M	 X(\002) h  X6048 -32738 M
 X(RWCAP) h X11808 -32738 M0 X(RSN$_CPUCAP) h X23328 -32738 M_ X29088 -32738 M9 X(15) hT X34848 -32738 M0$ X(CPU Capability \(Vectors, etc\)) h X3168 -34388 M	 X(\002) h  X6048 -34388 M
 X(RWCSV) h X11808 -34388 M  X(RSN$_CLUSRV) h X23328 -34388 M4 X29088 -34388 M0 X(16) h2 X34848 -34388 M   X(Cluster Server Process Busy) h X28800 -37688 MR X-10800 10833 Tg X 	 Xshowpage  X$P e: X6 X%%Page: 9 9 X/$P a D Xg N X90 Oa XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 A 
 Xctm_cached td X/ctm_cached x y D X71160 -52968 Ts X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached td X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 A 
 Xctm_cached td X/ctm_cached x y D
 X8328 -8328 Ts X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached t0 XH XS X1200 w  X0 c X0 j
 X0.625 G k XR XN X5 X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $a X/Times-Roman & Pa" X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 7502 0 V6\2550772           Spring'93 DECUS Symposia) h X59507 -1113 M X(Slide No. ) h8 X(9) h X288 -2412 M X-7200 57415 T X3 X10800 -10833 T1 XN X0 G X12768 -2088 M X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o ff X(Resource Waits and MUTEXes) h8 X288 -8638 M X/Symbol F 1400 o ft	 X(\267) ho
 X3168 -8638 Mo" X/Times-Roman-ISOLatin1 F 1800 o f@ X(A Resource Wait is entered by the OpenVMS Executive when an) h X3168 -10688 MK X(exhaustion of a resource is detected.  The routine SCH$RWAIT is called) h9 X3168 -12738 MK X(with the RSN$_nnnnnnn symbol as input.  The RSN$ code is placed in the) ha X3168 -14788 M6 X(PCB$L_EFWM and the process state is set to MWAIT.) h
 X288 -19238 M5 X/Symbol F 1400 o fM	 X(\267) h5 X3168 -19238 M" X/Times-Roman-ISOLatin1 F 1800 o fI X(The bit corresponding to the RSN$ code is set in the system longword) h5 X3168 -21288 M, X(SCH$GL_RESMASK, i.e. RSN$_MPWBUSY = 12.) h X3168 -23338 M X3168 -25388 M X3168 -27438 M
 X288 -31888 M4 X/Symbol F 1400 o f0	 X(\267) ho X3168 -31888 M" X/Times-Roman-ISOLatin1 F 1800 o fJ X(When the OpenVMS Executive determines that a resource has been freed,) h X3168 -33938 MH X(\(via the RSE routine\) it check the SCH$GL_RESMASK to determine if) h X3168 -35988 MI X(any processes are waiting on the resource.  If so, the MWAIT process) hr X3168 -38038 MI X(queue is scanned to determine which processes should be rescheduled.) h  X-10800 10833 T6 X  X25992 -39744 25776 3096 @ XS X100 w X0 c X0 j X2 i	 X0.00 G k2 XR XN X1 X50400 -35784 M  X0 G X(0) h X  X26208 -36000 M- X0 G X(31) h8 X7 X39384 -36000 M7 X0 G X(12) h- X8 X40248 -38736 M  X0 G X(1) h X 	 Xshowpage  X$P e4 X2 X%%Page: 10 10 X/$P a D Xg N X90 O1 XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 A 
 Xctm_cached t  X/ctm_cached x y D X71160 -52968 Tr X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached t  X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 A-
 Xctm_cached ta X/ctm_cached x y D
 X8328 -8328 TL X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached t  XH XS X1200 w\ X0 c X0 j
 X0.625 G k XR XN X  X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $  X/Times-Roman & Pe" X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 7502s0 V6\2550772           Spring'93 DECUS Symposia) h X58957 -1113 M X(Slide No. ) hs X(10) h0 X288 -2412 M X-7200 57415 T Xh X10800 -10833 T5 XN X0 G
 X3735 -2088 M0 X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o fs4 X(Example of Putting a Process in a Resource Wait) h
 X288 -10738 M0 X6048 -10738 M X/Courier-ISOLatin1 $N
 X/Courier & P1 X/Courier-ISOLatin1 F 1400 o f X(;) h
 X288 -12388 M/ X6048 -12388 M X(;) h X11808 -12388 M 2 X(Put self in RWAST if there unable to allocate) h
 X288 -14038 M0 X6048 -14038 M X(;) h X11808 -14038 MS& X(the required non\255paged pool...) h
 X288 -15688 M2 X6048 -15688 M X(;) h
 X288 -17338 M- X6048 -17338 M X(;) h X11808 -17338 Me( X(Assume R4 hold value of current PCB) h
 X288 -18988 Mi X6048 -18988 M X(1$:) h
 X288 -20638 MX X6048 -20638 M X11808 -20638 M1	 X(movl) h( X17568 -20638 M8 X(#GOOF$C_LENGTH,r1) h
 X288 -22288 Mo X6048 -22288 M X11808 -22288 Mn X(jsb) h X17568 -22288 Ma3 X(g`5EEXE$DEBIT_BYTCNT_ALO ; Allocate 1000 bytes) hs
 X288 -23938 Mo X6048 -23938 M X11808 -23938 Mh	 X(blbs) h  X17568 -23938 Ms
 X(r0,5$) h
 X288 -25588 M 
 X288 -27238 Mc X6048 -27238 M X11808 -27238 M1	 X(movl) hl X17568 -27238 M 2 X(#RSN$_NPDYNMEM,r0   ; Can't do it, wait until) h
 X288 -28888 M  X6048 -28888 M X11808 -28888 M  X(jsb) h X17568 -28888 Ma X23328 -28888 M0- X(SCH$RWAIT    ; the system frees some and) he
 X288 -30538 Mr X6048 -30538 M X11808 -30538 M  X(brb) h X17568 -30538 Mi X(1$) hi X23328 -30538 Ms X29088 -30538 M ! X(      ; then try it again...) ho
 X288 -32188 Mo X6048 -32188 M X(5$:) h
 X288 -33838 M  X6048 -33838 M X11808 -33838 M4	 X(movl) ht X17568 -33838 Mt5 X(r1,GOOF$W_SIZE\(r2\)  ; Play with our new buffer) h(
 X288 -35488 M  X6048 -35488 M X11808 -35488 M  X(...) h
 X288 -37888 Mn X6048 -37888 M X28800 -41438 My X-10800 10833 Tt X)	 Xshowpage3 X$P e  Xt X%%Page: 11 11 X/$P a D Xg N X90 O- XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 A 
 Xctm_cached t  X/ctm_cached x y D X71160 -52968 T0 X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached tc X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 A0
 Xctm_cached tc X/ctm_cached x y D
 X8328 -8328 T5 X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached tc XH XS X1200 wh X0 c X0 j
 X0.625 G k XR XN X0 X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $j X/Times-Roman & PN" X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 7502n0 V6\2550772           Spring'93 DECUS Symposia) h X58957 -1113 M X(Slide No. ) h  X(11) h  X288 -2412 M X-7200 57415 T XC X10800 -10833 T5 XN X0 G X11565 -2088 M X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o f7" X(RWAST Causes and Descriptions) h X288 -8638 M X/Symbol F 1400 o fO	 X(\267) h0
 X3168 -8638 Mr" X/Times-Roman-ISOLatin1 F 1800 o f4 X(RWAST == Resource Wait for AST\255related event) h
 X288 -13088 MS X/Symbol F 1400 o f(	 X(\267) hx X3168 -13088 M" X/Times-Roman-ISOLatin1 F 1800 o f6 X(RWAST generally occurs for the following reasons:) h X3168 -17538 M Xn 0.778 o f	 X(\002) h3 X6048 -17538 M Xn 1.286 o f: X(Process is waiting for the deletion of a sub process.) h X3168 -19588 M Xn 0.778 o f	 X(\002) h0 X6048 -19588 M Xn 1.286 o f+ X(AST Limit has been exhausted \(ASTLM\)) h2 X3168 -21638 M Xn 0.778 o f	 X(\002) h  X6048 -21638 M Xn 1.286 o f2 X(Direct I/O Limit has been exhausted \(DIOLM\)) h X3168 -23688 M Xn 0.778 o f	 X(\002) h$ X6048 -23688 M Xn 1.286 o f4 X(Buffered I/O Limit has been exhausted \(BIOLM\)) h X3168 -25738 M Xn 0.778 o f	 X(\002) h4 X6048 -25738 M Xn 1.286 o f8 X(Process is waiting for outstanding I/O to complete.) h
 X288 -30188 M0 X/Symbol F 1400 o fM	 X(\267) h3 X3168 -30188 M" X/Times-Roman-ISOLatin1 F 1800 o fJ X(Quota exhaustion typically is transient, as the process is allowed to) h X3168 -32238 MA X(continue executing once an I/O or other event has completed.) hW
 X288 -36688 M- X/Symbol F 1400 o fM	 X(\267) h0 X3168 -36688 M" X/Times-Roman-ISOLatin1 F 1800 o fM X(Waiting for a process deletion is also transient, unless that process is noW Vt) h  X3168 -38738 M X(computable \(i.e.) h! X/Times-Bold-ISOLatin1 F 1800 o f( X( it's ) h8" X/Times-Roman-ISOLatin1 F 1800 o f X(stuck in RWAST, too!\).) h X-10800 10833 T  X 	 Xshowpage  X$P e  X  X%%Page: 12 12 X/$P a D Xg N X90 O  XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 A 
 Xctm_cached t2 X/ctm_cached x y D X71160 -52968 T8 X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached t  X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 An
 Xctm_cached t  X/ctm_cached x y D
 X8328 -8328 T3 X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached tA XH XS X1200 w3 X0 c X0 j
 X0.625 G k XR XN X3 X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $M X/Times-Roman & P " X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 750280 V6\2550772           Spring'93 DECUS Symposia) h X58957 -1113 M X(Slide No. ) ho X(12) h$ X288 -2412 M X-7200 57415 T X  X10800 -10833 T  XN X0 G
 X8035 -2088 M0 X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o f1' X(Using SDA to Determine RWAST Cause) hA X288 -8638 M X/Symbol F 1400 o fD	 X(\267) h9
 X3168 -8638 M0" X/Times-Roman-ISOLatin1 F 1800 o f) X(Process state will be MWAIT or RW???) h0 X3168 -12788 M Xn 0.778 o f	 X(\002) h  X6048 -12788 MM X(If the state is "MWAIT", the process is in a MUTEX state.  Use "EVAL/ADDRESM VS on the) h X6048 -14438 MM X(address specified in the Event Flag Wait Mask to determine which MUTEX is la
 Vocked.) h X3168 -18488 M	 X(\002) hP X6048 -18488 MM X(If the state is "RW???", then the process is in a resource wait.  The Event  V Flag Wait Mask) h2 X6048 -20138 MM X(will be set to the reason code, which should match the state shown by SDA.)/ V h-
 X288 -24488 Me X/Symbol F 1400 o f0	 X(\267) he X3168 -24488 M" X/Times-Roman-ISOLatin1 F 1800 o f9 X(Use "SHOW PROCESS" and "SHOW PROCESS/CHANNEL" to see) hL X3168 -26538 M X(what it is waiting on.) hd X3168 -30688 M Xn 0.778 o f	 X(\002) h6 X6048 -30688 ML X(A "0" \(BYTLM/BYTCNT may be a small value\) a quota mean exhausted quota.) V h7 X3168 -32938 M	 X(\002) hn X6048 -32938 M+ X(A "busy" channel means outstanding I/O) h  X3168 -36388 M	 X(\002) ht X6048 -36388 MM X(Otherwise, check subprocess count for active subprocesses.  Analyze them fo1 Vr Resource) h X6048 -38038 M X(Wait problems.) h  X-10800 10833 Tt XR	 Xshowpage  X$P et Xs X%%Page: 13 13 X/$P a D Xg N X90 OC XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 A8
 Xctm_cached t8 X/ctm_cached x y D X71160 -52968 T  X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached t- X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 Ar
 Xctm_cached tn X/ctm_cached x y D
 X8328 -8328 T  X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached td XH XS X1200 w3 X0 c X0 j
 X0.625 G k XR XN Xa X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $M X/Times-Roman & Pd" X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 750200 V6\2550772           Spring'93 DECUS Symposia) h X58957 -1113 M X(Slide No. ) h2 X(13) h0 X288 -2412 M X-7200 57415 T X- X10800 -10833 T( XN X0 G
 X3797 -2088 M  X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o f9* X(Sample SDA Output: SHOW PROCESS/INDEX) h X288 -8038 M X/Courier-ISOLatin1 $c
 X/Courier & P_ X/Courier-ISOLatin1 F 1000 o f  X(SDA> SHOW PROCESS/INDEX=0CF) h X288 -9888 M> X(Process index: 000F Name: DAVIDC_1 Extended PID: 000000CF) h
 X288 -11738 M ( X(Process status: 02040001 RES,PHDRES) h
 X288 -13588 M0 X(PCB address) h X11688 -13588 M   X(      805659E0  JIB address) h X28788 -13588 M7 X(             806D2F80) h
 X288 -14838 Me X(PHD address) h X11688 -14838 M 6 X(      808F9000  Swapfile disk address    00000000) h
 X288 -16088 Mo8 X(Master internal PID      00020019  Subprocess count) h X34488 -16088 Mn X(          1) h
 X288 -17338 M1 X(Internal PID) h  X11688 -17338 M86 X(      0003000F  Creator internal PID     00020019) h
 X288 -18588 M0 X(Extended PID) ha X11688 -18588 Mo6 X(      000000CF  Creator extended PID     00000099) h
 X288 -19838 Me
 X(State) h X5988 -19838 M1 X(                  RWAST  Termination mailbox) hN X34488 -19838 M  X(       002F) h
 X288 -21088 M( X(Current priority) h6 X11688 -21088 M)" X(             6  AST's enabled) h X34488 -21088 Ma X(       KESU) h
 X288 -22338 M0 X(Base priority) h X11688 -22338 M3! X(             4  AST's active) ho X28788 -22338 M5 X(                NONE) h)
 X288 -23588 M  X(UIC) h X5988 -23588 M1 X(         `5B00002,000001`5D  AST's remaining) hn X34488 -23588 M8 X(        148) h
 X288 -24838 M  X(Mutex count) h X11688 -24838 M8- X(             0  Buffered I/O count/limit) hG X40188 -24838 Mh
 X( 0/40) h
 X288 -26088 M2 X(Waiting EF cluster) h( X11688 -26088 M2+ X(             0  Direct I/O count/limit) h  X40188 -26088 M2
 X(40/40) h
 X288 -27338 MML X(Starting wait time       1B001B1B  BUFIO byte count/limit      30800/30800 V ) h7
 X288 -28588 M2J X(Event flag wait mask     00000001  # open files allowed left     147 ) h
 X288 -29838 M,J X(Local EF cluster 0       E0000000  Timer entries allowed left     20 ) h
 X288 -31088 Ma? X(Local EF cluster 1       00000000  Active page table count) he X40188 -31088 M  X(0) h
 X288 -32338 M-= X(Global cluster 2 pointer 00000000  Process WS page count) hs X34488 -32338 M  X(        161) h
 X288 -33588 M < X(Global cluster 3 pointer 00000000  Global WS page count) h X34488 -33588 M1 X(         40) h
 X288 -34838 M8
 X288 -40438 M1 X-10800 10833 T) X  XN X56808 -27792 Mf X52508 -34174 L8 XS X100 w X0 c X0 j X2 i	 X0.00 G k( XR XN XN X52531 -33666 M  X52344 -34416 L- X52970 -33962 L  XH XS	 X0.00 G Jp XR XN X  X57168 -27288 M  X0 G X(Zero remaining quota) h/ X_ XN X38232 -48096 M- X31080 -39893 L0 XS X100 w X0 c X0 j X2 i	 X0.00 G k_ XR XN XN X31565 -40046 M0 X30888 -39672 L0 X31166 -40394 Lm XH XS	 X0.00 G Ja XR XN X  X38664 -48816 M1 X0 G) X(Event Flag Mask == 1 == RSN$_ASTWAIT) h/ X_ X38664 -49896 M2 X0 G4 X(if 8nnnnnnn, then it would indicate which MUTEX) h XH	 Xshowpage  X$P ec X0 X%%Page: 14 14 X/$P a D Xg N X90 O5 XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 A 
 Xctm_cached to X/ctm_cached x y D X71160 -52968 TC X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached t0 X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 Ah
 Xctm_cached tM X/ctm_cached x y D
 X8328 -8328 T- X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached t  XH XS X1200 w8 X0 c X0 j
 X0.625 G k XR XN Xe X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $D X/Times-Roman & P8" X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 7502 0 V6\2550772           Spring'93 DECUS Symposia) h X58957 -1113 M X(Slide No. ) h  X(14) h0 X288 -2412 M X-7200 57415 T X8 X10800 -10833 Te XN X0 G X288 -2088 M X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o f , X(Sample SDA Output: SHOW PROCESS/CHANNEL) h X288 -3388 M X288 -7238 M
 X288 -10888 M  X/Courier-ISOLatin1 $0
 X/Courier & PM X/Courier-ISOLatin1 F 1000 o f) X( SDA> SHOW PROCESS/INDEX=0CF/CHANNEL) hM
 X288 -14538 M > X(Process index: 000F Name: DAVIDC_1 Extended PID: 000000CF) h
 X288 -18188 M  X5988 -18188 M X(Process active channels) h
 X288 -18838 M 
 X288 -19488 M2 X5988 -19488 MM X(\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\250 V5\255\255\255\255) h 
 X288 -20138 M(
 X288 -23188 Mi X(Channel) h X5988 -23188 M X( Window) h X11688 -23188 Mb X17388 -23188 M( X( Status) h X23088 -23188 Me X(Device/file accessed) hf
 X288 -23838 Ms
 X288 -24488 Mi! X(\255\255\255\255\255\255\255) hw X5988 -24488 M X( \255\255\255\255\255\255) h X11688 -24488 Me X17388 -24488 Me X( \255\255\255\255\255\255) h X23088 -24488 M(M X(\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\255\25r V5) he
 X288 -27538 Mt
 X( 0010) h X5988 -27538 M
 X(00000000) h  X11688 -27538 M  X17388 -27538 Me X23088 -27538 Md
 X(DUA0:) h
 X288 -28188 Mi
 X288 -28838 Me
 X( 0020) h X5988 -28838 M
 X(8071C470) hA X11688 -28838 M- X17388 -28838 M  X23088 -28838 M + X(DUA0:`5BDAVIDC.RWAST`5DRWAST_BIO.EXE;4) h 
 X288 -29488 Mh
 X288 -30138 M0
 X( 0030) h X5988 -30138 M
 X(00000000) hm X11688 -30138 M_ X(           Busy ) h2 X23088 -30138 M0 X(MBA50:) h-
 X288 -30788 Me
 X288 -31438 Mh
 X( 0040) h X5988 -31438 M
 X(00000000) h0 X11688 -31438 Mc X17388 -31438 Mt X23088 -31438 M8
 X(TWA3:) h
 X288 -32088 M 
 X288 -32738 M0
 X( 0050) h X5988 -32738 M
 X(00000000) h  X11688 -32738 M  X17388 -32738 M  X23088 -32738 MG
 X(TWA3:) h
 X288 -34438 Ma X-10800 10833 T/ Xe XN X45072 -46008 M- X38044 -41346 L  XS X100 w X0 c X0 j X2 i	 X0.00 G kt XR XN XN X38552 -41365 M, X37800 -41184 L  X38259 -41807 L  XH XS	 X0.00 G JS XR XN X  X45432 -46800 M( X0 G" X/Times-Roman-ISOLatin1 F 1200 o f4 X(Mailbox I/O incomplete, probably needs flushing) h X 	 Xshowpage- X$P eO Xi X%%Page: 15 15 X/$P a D Xg N X90 OO XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 A6
 Xctm_cached tF X/ctm_cached x y D X71160 -52968 T0 X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached ts X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 A0
 Xctm_cached t1 X/ctm_cached x y D
 X8328 -8328 Tt X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached tM XH XS X1200 w6 X0 c X0 j
 X0.625 G k XR XN Xn X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $h X/Times-Roman & P(" X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 7502i0 V6\2550772           Spring'93 DECUS Symposia) h X58957 -1113 M X(Slide No. ) he X(15) ho X288 -2412 M X-7200 57415 T Xe X10800 -10833 T  XN X0 G X10601 -2088 M X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o fE$ X(Breaking Processes Out of RWAST) h X288 -8638 M X/Symbol F 1000 o f6	 X(\267) h 
 X3168 -8638 M(" X/Times-Roman-ISOLatin1 F 1800 o f@ X(Incomplete I/O make up most of the "undeletable" processes.) h
 X288 -12488 M3 X/Symbol F 1000 o f6	 X(\267) hM X3168 -12488 M" X/Times-Roman-ISOLatin1 F 1800 o fD X(Different device types require different ways to break the I/O.) h
 X288 -16338 Me X/Symbol F 1000 o fz	 X(\267) h  X3168 -16338 M" X/Times-Roman-ISOLatin1 F 1800 o f9 X(Typical types of incomplete I/O cases that are seen:) h  X3168 -20188 M X/Courier-ISOLatin1 $a
 X/Courier & P1 X/Courier-ISOLatin1 F 1000 o f	 X(\002) hc X6048 -20188 M" X/Times-Roman-ISOLatin1 F 1800 o f) X(Network devices \(NETnn: and RTAn:\)) h- X3168 -24038 M X/Courier-ISOLatin1 F 1000 o f	 X(\002) h- X6048 -24038 M" X/Times-Roman-ISOLatin1 F 1800 o f X(Mailboxes \(MBAnnn:\)) h X3168 -27888 M X/Courier-ISOLatin1 F 1000 o f	 X(\002) h0 X6048 -27888 M" X/Times-Roman-ISOLatin1 F 1800 o f
 X(Disks) h X3168 -31738 M X/Courier-ISOLatin1 F 1000 o f	 X(\002) h- X6048 -31738 M" X/Times-Roman-ISOLatin1 F 1800 o f
 X(Tapes) h X3168 -35588 M X/Courier-ISOLatin1 F 1000 o f	 X(\002) h  X6048 -35588 M" X/Times-Roman-ISOLatin1 F 1800 o f& X(Printers \(believe it or not...\)) h X-10800 10833 T- X1	 Xshowpage  X$P e  XG X%%Page: 16 16 X/$P a D Xg N X90 O1 XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 AA
 Xctm_cached tR X/ctm_cached x y D X71160 -52968 Te X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached tL X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 Ar
 Xctm_cached t0 X/ctm_cached x y D
 X8328 -8328 T0 X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached t1 XH XS X1200 w2 X0 c X0 j
 X0.625 G k XR XN X6 X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $( X/Times-Roman & P8" X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 750220 V6\2550772           Spring'93 DECUS Symposia) h X58957 -1113 M X(Slide No. ) h8 X(16) h  X288 -2412 M X-7200 57415 T Xn X10800 -10833 T1 XN X0 G X20169 -2088 M X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o fa X(Network Devices) h X288 -8638 M X/Symbol F 1000 o fD	 X(\267) h9
 X3168 -8638 M3" X/Times-Roman-ISOLatin1 F 1800 o fL X(Network devices can generally be freed by telling NCP to disconnect the) h X3168 -10088 M  X(link between the processes:) h
 X288 -14388 M  X5988 -14388 M Xn 0.778 o f X($ MCR NCP SHOW KNOW LINKS) h
 X288 -16288 M- X5988 -16288 MG X($! kill the link that seems to be connected to the RWAST'd process) h8
 X288 -17938 M  X5988 -17938 M X($ MCR NCP DISCONNECT LINK) h
 X288 -18388 MM
 X288 -21538 MB X/Symbol F 1800 o fs	 X(\267) h  X3168 -21538 M" X/Times-Roman-ISOLatin1 F 1800 o f
 X(Example:) hn X3168 -22388 M
 X288 -25338 M 
 X288 -24588 Mr X5988 -24588 M Xn 0.778 o f X($ mcr ncp show know link) h6
 X288 -26238 Mn
 X288 -27888 M( X5988 -27888 M@ X(Known Link Volatile Summary as of 6\255APR\2551993 20:17:47) h
 X288 -29538 M2
 X288 -31188 M( X5988 -31188 M X(     Link          Node) h X17388 -31188 M3J X(                PID        Process          Remote link   Remote user) h
 X288 -32838 Me X5988 -32838 M2 X(     8193 1.42 \(AVATAR\)   21600033   REMACP) h X34488 -32838 Ms! X(               8445   DAVIDC) h8
 X288 -34488 MF
 X288 -36138 M  X5988 -36138 M# X($ mcr ncp disconnect link 8193) h  X28800 -39438 M- X-10800 10833 Tl Xu	 Xshowpaget X$P e0 X  X%%Page: 17 17 X/$P a D Xg N X90 O3 XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 A0
 Xctm_cached tS X/ctm_cached x y D X71160 -52968 T  X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached t  X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 A0
 Xctm_cached t  X/ctm_cached x y D
 X8328 -8328 T1 X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached tH XH XS X1200 w  X0 c X0 j
 X0.625 G k XR XN X  X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $  X/Times-Roman & Pc" X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 7502 0 V6\2550772           Spring'93 DECUS Symposia) h X58957 -1113 M X(Slide No. ) h6 X(17) h  X288 -2412 M X-7200 57415 T Xw X10800 -10833 Tc XN X0 G X20367 -2088 M X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o f7 X(Mailbox Devices) h X288 -8638 M X/Symbol F 1800 o fo	 X(\267) hh
 X3168 -8638 M0" X/Times-Roman-ISOLatin1 F 1800 o fJ X(Once the proper mailbox is discovered, use a utility such as COPY to ) h X3168 -10688 M, X(dump data into, or out of, the mailbox:) h
 X288 -15138 M0 X/Symbol F 1800 o fA	 X(\267) he X3168 -15138 M" X/Times-Roman-ISOLatin1 F 1800 o fA X(For example, if the mailbox name was MBA1284, one of the two) ht X3168 -17188 M3 X(following commands should clear the condition:) hi
 X288 -21638 Mn X5988 -21638 M X($ COPY  MBA1284:  NLA0:) h
 X288 -26088 M2 X5988 -26088 M X11688 -26088 MS X(or) hh
 X288 -30538 MM X5988 -30538 M  X($ COPY  LOGIN.COM  MBA1284:) h
 X288 -34988 M1 X5988 -34988 M- X(It's probably a better practice to copy ) h$! X/Times-Bold-ISOLatin1 F 1800 o fO
 X(from ) h" X/Times-Roman-ISOLatin1 F 1800 o f X(before copying to...) h8 X28800 -40788 M  X-10800 10833 T/ Xr	 Xshowpagen X$P e/ Xr X%%Page: 18 18 X/$P a D Xg N X90 Of XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 As
 Xctm_cached ta X/ctm_cached x y D X71160 -52968 Th X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached tc X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 A2
 Xctm_cached t2 X/ctm_cached x y D
 X8328 -8328 T2 X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached t2 XH XS X1200 w8 X0 c X0 j
 X0.625 G k XR XN X1 X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $h X/Times-Roman & P " X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 7502\0 V6\2550772           Spring'93 DECUS Symposia) h X58957 -1113 M X(Slide No. ) h\ X(18) hh X288 -2412 M X-7200 57415 T X5 X10800 -10833 T2 XN X0 G X22034 -2088 M X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o f0 X(Tape Devices) h7 X288 -7438 M X/Symbol F 1800 o f7	 X(\267) hU
 X3168 -7438 M8" X/Times-Roman-ISOLatin1 F 1800 o fL X(Tape devices occasionally fall off\255line, and are not handled correctly. V  If) h
 X3168 -9488 MR. X(this happens, it can usually be fixed by:) h X3168 -13938 M	 X(\002) h8 X6048 -13938 M. X(Reload the tape and place back on\255line) h X3168 -17788 M	 X(\002) hB X6048 -17788 M$ X(DISMOUNT/ABORT `5Btape_drive`5D) h X3168 -21638 M	 X(\002) h  X6048 -21638 M  X(Force a "pack acknowledge":) h
 X288 -24288 M) X5988 -24288 M X11688 -24288 M0 Xn 0.667 o f X(devnam:) h X17388 -24288 M  X(.ascid) h  X23088 -24288 M  X(/MUA0:/) h
 X288 -25888 M) X5988 -25888 M X11688 -25888 M 
 X(chan:) h X17388 -25888 M 
 X(.word) h X23088 -25888 M  X(0) h
 X288 -27338 M 
 X288 -28788 MN X5988 -28788 M X11688 -28788 M  X17388 -28788 M  X(.entry) h0 X23088 -28788 M  X(packack,0) h
 X288 -30238 Mi X5988 -30238 M X11688 -30238 M( X17388 -30238 Mp X($ASSIGN_S) h X28788 -30238 M  X(chan=chan,\255) hO
 X288 -31688 M1 X5988 -31688 M X11688 -31688 M  X17388 -31688 MD X23088 -31688 M  X28788 -31688 M0 X(devnam=devnam) h
 X288 -33138 Ma X5988 -33138 M X11688 -33138 M0 X17388 -33138 M0 X($QIOW_S) h X23088 -33138 Ma X28788 -33138 M  X(chan=chan,\255) hs
 X288 -34588 M8 X5988 -34588 M X11688 -34588 Md X17388 -34588 M2 X23088 -34588 Ms X28788 -34588 M0 X(func=#IO$_PACKACK) h
 X288 -36038 M0 X5988 -36038 M X11688 -36038 M  X17388 -36038 MN X(ret) h
 X288 -37488 Mi
 X288 -38938 Mt X5988 -38938 M X11688 -38938 Me X17388 -38938 M 	 X(.end) h  X23088 -38938 M, X(packack) h X-10800 10833 TO Xx	 Xshowpagea X$P e7 Xi X%%Page: 19 19 X/$P a D Xg N X90 OS XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 A 
 Xctm_cached t  X/ctm_cached x y D X71160 -52968 T1 X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached to X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 Ao
 Xctm_cached t8 X/ctm_cached x y D
 X8328 -8328 T2 X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached t  XH XS X1200 wp X0 c X0 j
 X0.625 G k XR XN Xe X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $  X/Times-Roman & P " X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 750230 V6\2550772           Spring'93 DECUS Symposia) h X58957 -1113 M X(Slide No. ) h8 X(19) h( X288 -2412 M X-7200 57415 T Xa X10800 -10833 T: XN X0 G X22301 -2088 M X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o f  X(Disk Devices) hi X288 -8638 M X/Symbol F 1200 o fe	 X(\267) he
 X3168 -8638 MR" X/Times-Roman-ISOLatin1 F 1800 o fM X(Disk devices fall off\255line as well.  Follow the same guidelines used for8 V) h X3168 -11288 M X(tape devices:) h X3168 -16338 M Xn 0.667 o f	 X(\002) h  X6048 -16338 M Xn 1.500 o f. X(DISMOUNT/ABORT/OVER=CHECK `5Bdisk_name`5D) h X3168 -21388 M	 X(\002) hL X6048 -21388 M  X(Toggle drive off/on\255line) h X3168 -26438 M	 X(\002) ho X6048 -26438 MB X(Also, the "pack acknowledge" routine can sometimes be used to) h X6048 -29088 M X(recover the disk drive.) h X28800 -35488 Me X-10800 10833 Th X-	 Xshowpage  X$P e  Xo X%%Page: 20 20 X/$P a D Xg N X90 OP XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 A0
 Xctm_cached t  X/ctm_cached x y D X71160 -52968 TD X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached t0 X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 A 
 Xctm_cached t  X/ctm_cached x y D
 X8328 -8328 Ty X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached t0 XH XS X1200 w1 X0 c X0 j
 X0.625 G k XR XN X6 X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $- X/Times-Roman & P " X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 750270 V6\2550772           Spring'93 DECUS Symposia) h X58957 -1113 M X(Slide No. ) hM X(20) h  X288 -2412 M X-7200 57415 T X  X10800 -10833 Tn XN X0 G
 X8804 -2088 M0 X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o fO0 X(Line Printer Devices \(believe it or not!\)) h X288 -8638 M X/Symbol F 1800 o f 	 X(\267) h8
 X3168 -8638 M-" X/Times-Roman-ISOLatin1 F 1800 o fM X(In really perverse cases, a line printer device \(typically LP11's\) may ge0 Vt a) hi X3168 -11288 ML X(partial buffer out, but for some reason be unable to complete the current) V hI X3168 -13938 M" X(I/O.  Of course, just simply:) h X3168 -18988 M	 X(\002) hn X6048 -18988 M Xn 0.778 o f X(Close printer doors) h X3168 -21038 M Xn 1.286 o f	 X(\002) h  X6048 -21038 M Xn 0.778 o f X(Clear jams) h  X3168 -23088 M Xn 1.286 o f	 X(\002) h- X6048 -23088 M Xn 0.778 o f X(Add paper) h X3168 -25138 M Xn 1.286 o f	 X(\002) h  X6048 -25138 M Xn 0.778 o f X(Other printer stuff...) hk
 X288 -28388 M3 X/Symbol F 1800 o f 	 X(\267) h8 X3168 -28388 M" X/Times-Roman-ISOLatin1 F 1800 o f X(Case history:) h
 X288 -31038 M2 X5988 -31038 M Xn 0.778 o fM X(A printer got stuck at the same time the SYMBIONT had a lock on a RIGHTSLISo VT entry...) h
 X288 -32788 MoM X(and was stopped.  The SYMBIONT was RWASTed, had a blocking lock on the RIGH0 VTSLIST, that) h
 X288 -34438 M M X(ended up locking up everyone on the system \(600+ angry users\) in LOGINOUT8 V, DIR/OWNER, etc.) he
 X288 -38488 M  X5988 -38488 MM X(The solution?  Close the door to the 15\255year\255old\255washing\255machinN# Ve\255sized LP27 printer :\255\() h1 X-10800 10833 T  X0	 Xshowpage9 X$P e  Xm X%%Page: 21 21 X/$P a D Xg N X90 O- XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 Ax
 Xctm_cached t9 X/ctm_cached x y D X71160 -52968 T0 X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached t8 X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 A0
 Xctm_cached tj X/ctm_cached x y D
 X8328 -8328 T4 X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached tt XH XS X1200 wo X0 c X0 j
 X0.625 G k XR XN X  X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $0 X/Times-Roman & P " X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 750200 V6\2550772           Spring'93 DECUS Symposia) h X58957 -1113 M X(Slide No. ) h  X(21) ho X288 -2412 M X-7200 57415 T X2 X10800 -10833 To XN X0 G
 X2769 -2088 MM X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o f83 X(Brute Force Approaches to Getting out of RWAST) ha X288 -9838 M X/Symbol F 1800 o f 	 X(\267) h(
 X3168 -9838 M " X/Times-Roman-ISOLatin1 F 1800 o f X(REBOOT THE SYSTEM!!!) hA
 X288 -18488 M3 X/Symbol F 1800 o f-	 X(\267) ht X3168 -18488 M" X/Times-Roman-ISOLatin1 F 1800 o fM X(But really folks, "simply" disable the resource wait for the process and lea Vt) ho X3168 -20538 M X(it die off:) h X3168 -24988 M	 X(\002) h8 X6048 -24988 MI X(Get the Process Control Block \(PCB\) address of the target process.) h5 X3168 -29438 M	 X(\002) hI X6048 -29438 M, X(Set the PCB$M_SSRWAIT bit in PCB$L_STS.) h X3168 -33888 M	 X(\002) hc X6048 -33888 M- X(Clear the PCB$M_DELPEN bit in PCB$L_STS.) he X3168 -38338 M	 X(\002) hf X6048 -38338 M, X(Issue another $DELPRC to the process...) h X-10800 10833 Tn X$	 Xshowpage% X$P e1 X8 X%%Page: 22 22 X/$P a D Xg N X90 Oh XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 Aa
 Xctm_cached tx X/ctm_cached x y D X71160 -52968 T  X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached tx X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 A2
 Xctm_cached tx X/ctm_cached x y D
 X8328 -8328 T  X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached t  XH XS X1200 w0 X0 c X0 j
 X0.625 G k XR XN XT X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $  X/Times-Roman & P-" X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 7502 0 V6\2550772           Spring'93 DECUS Symposia) h X58957 -1113 M X(Slide No. ) h8 X(22) h  X288 -2412 M X-7200 57415 T X  X10800 -10833 T0 XN X0 G
 X8903 -2088 MI X/Times-Bold-ISOLatin1 $ X/Times-Bold & P! X/Times-Bold-ISOLatin1 F 2400 o fs, X(For those that need the code example...) h X288 -5638 M
 X5988 -5638 Me X/Courier-ISOLatin1 $0
 X/Courier & Pv X/Courier-ISOLatin1 F 1000 o f X(.title) ho X11688 -5638 M X(DISABLE_RW) h3 X288 -6888 M
 X(;++ ;) h
 X5988 -6888 Ml X(DISABLE_RW) hh X17388 -6888 M6 X(\255\255 Disable Resource Wait of another process) h X288 -8138 M X(; ; Author:) h X11688 -8138 M X(David L. Cathey) h X288 -9388 M X(;) h
 X5988 -9388 M6 X11688 -9388 M X(Montagar Software Concepts) h 
 X288 -10638 Mg X(;) h X5988 -10638 M X11688 -10638 M1 X(P. O. Box 260772) h7
 X288 -11888 M) X(;) h X5988 -11888 M X11688 -11888 M8 X(Plano, TX 75026\2550772) h
 X288 -13138 M8 X(;) h X5988 -13138 M X11688 -13138 M  X(davidc@montagar.com) h
 X288 -14388 M8 X(;) h
 X288 -15638 M3 X5988 -15638 M
 X(.link) h X11688 -15638 M- X17388 -15638 M- X("SYS$SYSTEM:SYS.STB"/SE) h
 X288 -16888 Ma X5988 -16888 M
 X(.library) h8 X11688 -16888 M8 X(/SYS$LIBRARY:LIB/) h
 X288 -18138 M_ X5988 -18138 M X($PCBDEF) h X11688 -18138 M2 X17388 -18138 M8( X(; Process Control Block definitions) h
 X288 -21788 M1
 X(asc_pid:) h- X5988 -21788 M X(.ascid) h  X11688 -21788 M5 X("xxxxxxxx") h6 X23088 -21788 M3 X28788 -21788 MQ X(; Save space for PID) h 
 X288 -23038 M 
 X(bin_pid:) h2 X5988 -23038 M
 X(.long) h X11688 -23038 M8 X(0) h
 X288 -24288 M8 X(prompt:) h X5988 -24288 M X11688 -24288 Mc X(.ascid) h) X17388 -24288 M0 X("Process ID: ") h6 X28788 -24288 M3 X(; Prompt string) h
 X288 -25538 Mi
 X288 -26788 Mt X5988 -26788 M X(.entry) h3 X11688 -26788 M3 X(Main,0) h 
 X288 -30438 M3 X5988 -30438 M X(pushaw) h0 X11688 -30438 Mp X(asc_pid) h
 X288 -31688 M  X5988 -31688 M X(pushaq) hN X11688 -31688 My X(prompt) h3
 X288 -32938 M0 X5988 -32938 M X(pushaq) he X11688 -32938 Md X(asc_pid) h
 X288 -34188 M0 X5988 -34188 M
 X(calls) h X11688 -34188 Mt X(#3,g`5ELIB$GET_FOREIGN) hT X28788 -34188 M0 X(; Get PID from user) h
 X288 -35438 Ma X5988 -35438 M	 X(blbc) h  X11688 -35438 M0 X(r0,999$) h
 X288 -36688 M  X5988 -36688 M X11688 -36688 M0
 X288 -37938 MN X5988 -37938 M X(pushal) hG X11688 -37938 M/ X(bin_pid) h X-10800 10833 Te Xo	 Xshowpage/ X$P eo X- X%%Page: 23 23 X/$P a D Xg N X90 O, XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 A7
 Xctm_cached tr X/ctm_cached x y D X71160 -52968 T3 X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached t  X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 Ae
 Xctm_cached t1 X/ctm_cached x y D
 X8328 -8328 TI X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached t6 XH XS X1200 w1 X0 c X0 j
 X0.625 G k XR XN XR X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $n X/Times-Roman & Pt" X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 750260 V6\2550772           Spring'93 DECUS Symposia) h X58957 -1113 M X(Slide No. ) h2 X(23) h( X288 -2412 M X-7200 57415 T Xe X10800 -10833 Tl XN X0 G X288 -1038 M
 X5988 -1038 M4 X/Courier-ISOLatin1 $ 
 X/Courier & Pg X/Courier-ISOLatin1 F 1000 o f X(pushaq) h  X11688 -1038 M X(asc_pid) h X17388 -1038 M X23088 -1038 M X28788 -1038 M" X(; Convert ascii hex to binary) h X288 -2288 M
 X5988 -2288 M 
 X(calls) h X11688 -2288 M X(#2,g`5EOTS$CVT_TZ_L) h X288 -3538 M
 X5988 -3538 M 	 X(blbc) hh X11688 -3538 M X(r0,999$) h X288 -7188 M
 X5988 -7188 Mc X($CMKRNL_S) h X11688 -7188 M X(routin=do_it) h1 X23088 -7188 M X28788 -7188 M X(; Play with the process...) hD X288 -8438 M X(999$: ) h0
 X5988 -8438 M  X(ret) h
 X288 -12088 MH X5988 -12088 M X(.entry) h0 X11688 -12088 M  X(Do_It,`5EM<>) h 
 X288 -15738 M- X5988 -15738 M	 X(movl) ht X11688 -15738 Mo X(bin_pid,r0) h-
 X288 -16988 M  X5988 -16988 M X(jsb) h X11688 -16988 Mt X(g`5EEXE$EPID_TO_PCB) h X23088 -16988 M0 X28788 -16988 M  X(; Get PCB from EPID) h
 X288 -18238 M7 X5988 -18238 M	 X(tstl) h  X11688 -18238 M4 X(r0) h2 X17388 -18238 M1 X23088 -18238 MN X28788 -18238 M8 X(; Did we???) h
 X288 -19488 M/ X5988 -19488 M	 X(beql) hd X11688 -19488 M  X(99$) h X17388 -19488 Ms X23088 -19488 Mn X28788 -19488 M6 X(; Nope, bail out) h 
 X288 -20738 M  X5988 -20738 M
 X(bisl2) h X11688 -20738 M0# X(#PCB$M_SSRWAIT,PCB$L_STS\(r0\)) hi X28788 -20738 M  X(; Set SSRWAIT disable) h
 X288 -21988 M6 X5988 -21988 M
 X(bicl2) h X11688 -21988 Me" X(#PCB$M_DELPEN,PCB$L_STS\(r0\)) h X28788 -21988 M6 X(; Clear delete pending) h,
 X288 -23238 Mh X5988 -23238 M X($DELPRC_S) h X11688 -23238 M0 X(pidadr=bin_pid) hn X23088 -23238 M6 X28788 -23238 M2 X(; And delete again.) h
 X288 -24488 M7 X5988 -24488 M X(ret) h X11688 -24488 Mn X17388 -24488 M2 X23088 -24488 M8 X28788 -24488 M 
 X(; Bye...) h 
 X288 -25738 M 
 X(99$: ) h X5988 -25738 M	 X(movl) hM X11688 -25738 M( X(#SS$_NONEXPR,r0) h X23088 -25738 M  X28788 -25738 M0 X(; Non\255existent process!) hM
 X288 -26988 M- X5988 -26988 M X(ret) h
 X288 -30638 M  X5988 -30638 M	 X(.end) h8 X11688 -30638 M 	 X(Main) h 
 X288 -31888 Me X28800 -37488 MM X-10800 10833 To X 	 Xshowpage  X$P ey X) X%%Page: 24 24 X/$P a D Xg N X90 O  XN X/ctm_cached x y D X71160 -8328 T X1800 1800 s
 X0 0 1 90 0 At
 Xctm_cached t4 X/ctm_cached x y D X71160 -52968 Te X1800 1800 s X0 0 1 0 -90 A
 Xctm_cached tU X/ctm_cached x y D X8328 -52968 T X1800 1800 s X0 0 1 -90 -180 Au
 Xctm_cached te X/ctm_cached x y D
 X8328 -8328 Ta X1800 1800 s X0 0 1 -180 -270 A
 Xctm_cached t( XH XS X1200 w3 X0 c X0 j
 X0.625 G k XR XN X% X7200 -57415 T XN X0 G X288 -1113 M X/Times-Roman-ISOLatin1 $0 X/Times-Roman & P0" X/Times-Roman-ISOLatin1 F 1100 o fM X(David L. Cathey, Montagar Software Concepts, P.O.Box 260772, Plano, TX 7502 0 V6\2550772           Spring'93 DECUS Symposia) h X58957 -1113 M X(Slide No. ) he X(24) ht X288 -2412 M X-7200 57415 T X1 X10800 -10833 T1 XN X0 G X28800 -2988 M X11802 -21988 M  Xn 3.273 o f X(Questions and Answers) h
 X288 -24364 MN X-10800 10833 T3 X 	 Xshowpagea X$P et X 
 X%%Trailer X$D restore/ Xend % DEC_WRITE_dict  X%%Pages: 24 X%%DocumentFonts: Times-Romane X%%+ Helvetica-Bold0 X%%+ Times-Bold0 X%%+ Symbol2 X%%+ Courier% $ CALL UNPACK RWASTED.PS;1 1482065178M $ v=f$verify(v)  $ EXIT