8247899: HTML errors and warnings in threadPrimitiveDeprecation.html
Reviewed-by: lancea
This commit is contained in:
parent
510354452f
commit
e208d9aa1f
@ -282,7 +282,7 @@ The resulting <code>run</code> method is:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
<hr size="3" noshade="noshade" />
|
<hr>
|
||||||
<h2>Can I combine the two techniques to produce a thread that may
|
<h2>Can I combine the two techniques to produce a thread that may
|
||||||
be safely "stopped" or "suspended"?</h2>
|
be safely "stopped" or "suspended"?</h2>
|
||||||
Yes, it's reasonably straightforward. The one subtlety is that the
|
Yes, it's reasonably straightforward. The one subtlety is that the
|
||||||
@ -324,6 +324,5 @@ If the <code>stop</code> method calls <code>Thread.interrupt</code>, as
|
|||||||
described above, it needn't call <code>notify</code> as well, but it
|
described above, it needn't call <code>notify</code> as well, but it
|
||||||
still must be synchronized. This ensures that the target thread
|
still must be synchronized. This ensures that the target thread
|
||||||
won't miss an interrupt due to a race condition.
|
won't miss an interrupt due to a race condition.
|
||||||
<p><!-- Body text ends here --></p>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user