<div><div>$B2CF#$5$s(B</div><div><br></div><div>$B6b@.$G$9!#(B</div><div>$B$42sEz$"$j$,$H$&$4$6$$$^$9!#(B</div><div><br></div><div>$BAaB.$G$9$,!"(B</div><div>$B:rF|$4;XE&D:$$$?<BAuJ}K!$G!"F0:n3NG'$r9T$$$^$7$?$N$G!"Js9pCW$7$^$9!#(B</div><div><br></div><div>$B0J2<!";HMQ$7$?%/%i%9$N(BdoExecute$BItJ,$G$9!#(B</div><div><br></div><div>
$B!&(BATask(CRON)</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>public BTask bTask;</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>private AtomicBoolean pause = new AtomicBoolean();</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>-- $BCfN,(B --<span class="Apple-tab-span" style="white-space:pre">        </span></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>public void doExecute() {</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>System.out.println(&quot;ATask$B<B9T(B : &quot;);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>pause.set( ! pause.get() );</div><div>
<span class="Apple-tab-span" style="white-space:pre">                </span>this.notify();</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div><div><br></div><div>(AbstractPausableTask$BFb$G(Bpause$B$,(Bnull$B$K$J$C$F$7$^$&$?$a!"(B</div>
<div>ATask$B$N(Bpause$B$N@k8@$r!"(Bprivate AtomicBoolean pause;&nbsp;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$B"*(B private AtomicBoolean pause = new AtomicBoolean();</div><div>$B$KJQ99$7$F!"(BAbstractPausableTask.setPause$B$r8F$S=P$9$h$&$K=$@5$7$^$7$?!#(B)</div>
<div><br></div><div>$B!&(BBTask(NonDelayTrigger)</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>public void doExecute() {</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>int count = 0;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>while(count++ &lt; &nbsp;9000000) {</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>System.out.println(&quot;BTask$B<B9TCf(B : &quot; + count);</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>waitProcess();</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>}</div>
<div><br></div><div>$B!&(BAbstractPausableTask$B$KJQ99$O$"$j$^$;$s!#(B</div><div><br></div><div>$B$3$N%?%9%/$r<B9T$7$?7k2L!"(B</div><div>ATask.doExucete$B$G$N!"(Bnotify$B$r8F$S=P$7;~$K!"(B</div><div>IllegalMonitorStateException$B$,H/@8$7$^$9!#(B</div><div>$B%9%l%C%IE*$KNI$/$J$$$H;W$&$N$G$9$,!"(B</div><div>notify$B$r8F$P$J$1$l$P!"@5>o$K0l;~Dd;_!":F3+$,2DG=$G$7$?!#(B</div>
<div>($BNc$($P!"(BAbstractPausableTask$BFb$G!"(BpauseObject$B$N(Bnofity$B$^$GA`:n$9$k$N$O!"(B</div><div>$B$"$^$j%9%^!<%H$J$d$jJ}$G$O$J$$$N$G$7$g$&$+!#(B)</div><div><br></div><div>$B<B9TJ}K!$KLdBjE@Ey$4$6$$$^$7$?$i!"$4;XE&2<$5$$!#(B</div><div>$B59$7$/$*4j$$CW$7$^$9!#(B</div><div><br></div><div><br></div></div>