代码搜索:Concurrent
找到约 2,002 项符合「Concurrent」的源代码
代码结果 2,002
www.eeworm.com/read/373369/9460826
java serialnumberchecker.java
//: concurrency/SerialNumberChecker.java
// Operations that may seem safe are not,
// when threads are present.
// {Args: 4}
import java.util.concurrent.*;
// Reuses storage so we don't run out
www.eeworm.com/read/373369/9460856
java daemonsdontrunfinally.java
//: concurrency/DaemonsDontRunFinally.java
// Daemon threads don't run the finally clause
import java.util.concurrent.*;
import static net.mindview.util.Print.*;
class ADaemon implements Runnabl
www.eeworm.com/read/373369/9460876
java banktellersimulation.java
//: concurrency/BankTellerSimulation.java
// Using queues and multithreading.
// {Args: 5}
import java.util.concurrent.*;
import java.util.*;
// Read-only objects don't require synchronization:
www.eeworm.com/read/373369/9460878
java countdownlatchdemo.java
//: concurrency/CountDownLatchDemo.java
import java.util.concurrent.*;
import java.util.*;
import static net.mindview.util.Print.*;
// Performs some portion of a task:
class TaskPortion impleme
www.eeworm.com/read/373369/9460920
java threadvariations.java
//: concurrency/ThreadVariations.java
// Creating threads with inner classes.
import java.util.concurrent.*;
import static net.mindview.util.Print.*;
// Using a named inner class:
class InnerTh
www.eeworm.com/read/373369/9460946
java philosopher.java
//: concurrency/Philosopher.java
// A dining philosopher
import java.util.concurrent.*;
import java.util.*;
import static net.mindview.util.Print.*;
public class Philosopher implements Runnable
www.eeworm.com/read/373369/9460947
java exchangerdemo.java
//: concurrency/ExchangerDemo.java
import java.util.concurrent.*;
import java.util.*;
import net.mindview.util.*;
class ExchangerProducer implements Runnable {
private Generator generat
www.eeworm.com/read/365515/9860013
t cds.t
#!./perl -w
# Tests for Concurrent Data Store mode
use strict ;
use lib 't' ;
use BerkeleyDB;
use util ;
BEGIN
{
if ($BerkeleyDB::db_version < 2) {
print "1..0 # Skip: this needs Berk
www.eeworm.com/read/169058/9883509
java tester.java
//: concurrency/Tester.java
// Framework to test performance of concurrency containers.
import java.util.concurrent.*;
import net.mindview.util.*;
public abstract class Tester {
static int
www.eeworm.com/read/169058/9883529
java serialnumberchecker.java
//: concurrency/SerialNumberChecker.java
// Operations that may seem safe are not,
// when threads are present.
// {Args: 4}
import java.util.concurrent.*;
// Reuses storage so we don't run out