摘要
支持多线程机制是Java编程语言的一大重要特性,本文重点介绍基于线程和基于进程的多线程机制的基本概念及其优缺点,以及多线程的定义方法。通过龟兔赛跑程序的实现进一步介绍基于Java多线程机制的应用与实现。
Support multithreading mechanism is a very important characteristic of Java programming language,this article focus on introduces the basic concept and the advantage and disadvantage based on the thread and based on the multi-thread mechanism,as well as multi-thread definition method.Through the program of race between rabbit and tortoise further introduces the realization based on the Java multi-thread mechanism's application.
出处
《计算机与现代化》
2011年第9期165-167,172,共4页
Computer and Modernization
关键词
多线程
线程同步
唤醒
并发
multiple-thread
thread synchronization
wake up
concurrent