1 package com.freemindcafe.concurrency.sample4;
4 import java.util.concurrent.TimeUnit;
9 public void test1()
throws Exception{
12 for(
int i=1; i<=5; i++){
13 sender.send(
new MyEvent(i));
22 public void test2()
throws Exception{
25 for(
int i=1; i<=15; i++){
26 sender.send(
new MyEvent(i));
34 private class MyEvent{
35 private final int num;
37 private MyEvent(
int num){
41 public String toString(){