This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<div id="wrapper"> | |
<div id="tictactoe"> | |
<table> | |
<tbody> | |
<tr> | |
<td></td> | |
<td></td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayDeque; | |
import java.util.Deque; | |
public abstract class SynchronizedProcessingQueue<T> { | |
private final ArrayDeque<T> queue; | |
private final Thread thread; | |
private boolean running = true; | |
public SynchronizedProcessingQueue(final String threadName) { |