use Thread#stop and Thread#wakeup to implement concurrency.