1,timer timer = new Timer (true) is now the daemon
2,timer is in accordance with the Shun, no asynchronous
3,timer method, Schedule (timertask task, Date firsttime, long Perid) Perid is the repetition delay, firsttime in advance is executed immediately after the start
4, the time of the line range sleep is counted in the perid inside, will not recalculate
5,timertask method, Canel cancel your task
6,timer method, Canel cancel your task
7, when the Cancel method is called externally, it is sometimes not executed in time because of a scramble for thread resources
8,timer method, Schedule (timertask task, long delay), delay is deferred, schedule (timertask task, long delay, long Perid) Perid is a repeating delay
9,timer method, Scheduleatfixrate (Tack,firsttime,period) corresponds to 4th, starting at the end of the task
Java multithreaded Programming core technology, fifth chapter