代码搜索:thread
找到约 10,000 项符合「thread」的源代码
代码结果 10,000
www.eeworm.com/read/291646/8405248
java table.java
public class Table {
private final String[] buffer;
private int tail; // 下一个put的地方
private int head; // 下一个take的地方
private int count; // buffer内的蛋糕数
public Table(int count)
www.eeworm.com/read/291646/8405251
java eaterthread.java
import java.util.Random;
public class EaterThread extends Thread {
private final Random random;
private final Table table;
public EaterThread(String name, Table table, long seed) {
www.eeworm.com/read/291646/8405258
java makerthread.java
import java.util.Random;
public class MakerThread extends Thread {
private final Random random;
private final Table table;
private static int id = 0; // 蛋糕的流水号(所有厨师共通)
public M
www.eeworm.com/read/291646/8405264
java eaterthread.java
import java.util.Random;
public class EaterThread extends Thread {
private final Random random;
private final Table table;
public EaterThread(String name, Table table, long seed) {
www.eeworm.com/read/291646/8405274
java main.java
public class Main {
public static void main(String[] args) {
// 执行Host的大型处理的线程
Thread executor = new Thread() {
public void run() {
System.out.prin
www.eeworm.com/read/291646/8405276
java makerthread.java
import java.util.Random;
public class MakerThread extends Thread {
private final Random random;
private final Table table;
private static int id = 0; // 蛋糕的流水号(所有厨师共通)
public M
www.eeworm.com/read/291646/8405279
java table.java
public class Table {
private final String[] buffer;
private int tail; // 下一个put的地方
private int head; // 下一个take的地方
private int count; // buffer内的蛋糕数
public Table(int count)
www.eeworm.com/read/291646/8405282
java eaterthread.java
import java.util.Random;
public class EaterThread extends Thread {
private final Random random;
private final Table table;
public EaterThread(String name, Table table, long seed) {
www.eeworm.com/read/291646/8405284
java clearthread.java
public class ClearThread extends Thread {
private final Table table;
public ClearThread(String name, Table table) {
super(name);
this.table = table;
}
public void
www.eeworm.com/read/291646/8405291
java makerthread.java
import java.util.Random;
public class MakerThread extends Thread {
private final Random random;
private final Table table;
private static int id = 0; // 蛋糕的流水号(所有厨师共通)
public Ma