1717package org .apache .commons .io ;
1818
1919/**
20- * Monitors a thread, interrupting it of it reaches the specified timout .
20+ * Monitors a thread, interrupting it if it reaches the specified timeout .
2121 * <p>
22- * This works by sleeping until the specified timout amount and then
22+ * This works by sleeping until the specified timeout amount and then
2323 * interrupting the thread being monitored. If the thread being monitored
2424 * completes its work before being interrupted, it should <code>interrupt()<code>
2525 * the <i>monitor</i> thread.
@@ -46,10 +46,10 @@ class ThreadMonitor implements Runnable {
4646 /**
4747 * Start monitoring the current thread.
4848 *
49- * @param timeout The timout amount in milliseconds
49+ * @param timeout The timeout amount in milliseconds
5050 * or no timeout if the value is zero or less
5151 * @return The monitor thread or {@code null}
52- * if the timout amount is not greater than zero
52+ * if the timeout amount is not greater than zero
5353 */
5454 public static Thread start (long timeout ) {
5555 return start (Thread .currentThread (), timeout );
@@ -59,10 +59,10 @@ public static Thread start(long timeout) {
5959 * Start monitoring the specified thread.
6060 *
6161 * @param thread The thread The thread to monitor
62- * @param timeout The timout amount in milliseconds
62+ * @param timeout The timeout amount in milliseconds
6363 * or no timeout if the value is zero or less
6464 * @return The monitor thread or {@code null}
65- * if the timout amount is not greater than zero
65+ * if the timeout amount is not greater than zero
6666 */
6767 public static Thread start (Thread thread , long timeout ) {
6868 Thread monitor = null ;
@@ -90,15 +90,15 @@ public static void stop(Thread thread) {
9090 * Construct and new monitor.
9191 *
9292 * @param thread The thread to monitor
93- * @param timeout The timout amount in milliseconds
93+ * @param timeout The timeout amount in milliseconds
9494 */
9595 private ThreadMonitor (Thread thread , long timeout ) {
9696 this .thread = thread ;
9797 this .timeout = timeout ;
9898 }
9999
100100 /**
101- * Sleep until the specified timout amount and then
101+ * Sleep until the specified timeout amount and then
102102 * interrupt the thread being monitored.
103103 *
104104 * @see Runnable#run()
0 commit comments