搜索资源列表
threadpool
- 线程池的开发,创建一个池来提高资源利用率,提高速率-the development of thread pool
FrameThread
- 附件中的代码使用java语言演示了线程的创建以及使用,其中还结合了javaGUI开发的简单应用。-Attachments using java language code demonstrates the creation and use of the thread, which also combines javaGUI simple application development.
Thread
- 1. 理解多线程、掌握线程的创建、启动、运行等方法,能够编写多线程类。 2. 能编写龟兔赛跑多线程应用程序。 -1. To understand multi-threaded, master thread to create, start, run and so on, to write multi-threaded class. 2. Can write multithreaded applications Tortoise and the Hare.
Thread
- 线程 java里面的两个创建线程的方法 一个是Thread ,另一个是用Runnable-Java threads creating threads inside of the two methods
ThreadTest
- java 中的多线程程序实例,包括:线程的创建方式、线程的生命周期、线程的方法(启动、挂起、唤醒、优先级等)-The multi-threaded java program example
thread
- 实现Java中创建线程以及线程的控制线程的同步与锁-Java threads created to achieve control of threads and thread synchronization and locking
JavaThreads
- 一个简单的创建Java线程的例子,创建了Class类,供初学Java参考。-A simple example of creating Java threads,creating a Class class for Java beginners reference.
java
- 1)理解线程的概念; (2)了解线程的状态和生命周期; (3)学习继承Thread 类来创建线程; (4)使用Runnable 接口。 (5)学习Runnable 接口在Applet 程序中的使用; (6)掌握Runnable 接口实现多线程的优点; (7)加深对Applet 中的几个常用方法的理解。 (8)理解线程同步的含义; (9)掌握synchronized 同步方法与synchronized 同步语句的用法; (10)学会使用Thread Group
Name
- 把“汤一平老师你好”写在网页上,围绕既定的中心点翻转和环绕旋转。 编程技巧说明: 名字旋转处理:为实现立体感效果添加了缩放系数; 用Runnable接口创建多线程; 名字画法及处理是用drawline()方法实现的; 坐标变换公式的应用; 背景颜色设置为绿色,大自然的颜色,看起来更亲切; 类说明: 程序首先调用init()设置初值等,然后调用start()方法,在此方法中创建一个新的线程runner,并调用线程的start()方法,并从写线程的run()方法
JAVA-NOTE-4
- JAVA多线程详解-Java语言的一个重要特点是内在支持多线程的程序设计。多线程是指在单个的程序内可以同时运行多个不同的线程完成不同的任务。多线程的程序设计具有广泛的应用。本章主要讲授线程的概念、如何创建多线程的程序、线程的生存周期与状态的改变、线程的同步与互斥等内容。-JAVA multi-threading Detailed An important feature of the Java language is inherent support for multi-threaded pro
Threads
- Java简简单单创建线程的小例子,生成有Class文件.-java threads
the-Java-Advanced-Programming
- 第1章至第4章详细介绍面向对象技术和Java类的高级特性;第5章介绍数组,主要 涉及数组的创建和使用;第6章介绍图形用户界面和事件处理;第7章讲述高级I/O处理技术;第8章 主要介绍多线程技术,包括线程的两种创建方法、线程的基本控制、线程的同步和线程的交互;第9章以 网络聊天室为例,以JBuilder9.0为开发环境,详细介绍图形用户界面设计、事件处理方法、Socket编程 技术和多线程编程技术;第10章以员工管理系统为例,详细讲述如何使用JDBC访问数据库-Chapter 1
JavaThread
- 什么是线程?线程的创建等有关JAVA方便线程的总结。-What is a thread? Thread creation and other relevant JAVA the thread and convenient summary.
clock
- 显示一个圆形时钟,是图形绘制的一个课设。涉及时钟的框架建立,时间读取,线程的创建,启动,运行等知识-Display a round the clock, is a class-based graphics rendering. Framework involves the establishment of a clock, the time to read, create threads, start, run and other knowledge
JingCheng-Communications
- 1、 点“创建线程” 按钮,创建两个线程,一个线程不断对一个变量加1,结果显示在第一个文本框中。另一个线程不断对另一个变量减1,结果显示在第二个文本框中。这两个线程之间没有交互,仅用于演示线程的创建。 2、 演示线程互斥,点“线程互斥” 按钮,创建两个线程,一个线程不断循环,每次循环对共享变量x做100次加1操作(这100次加1操作作为一个临界区CSa),另一个线程不断循环,每次循环对共享变量x做100次减1操作(这100次减1操作作为一个临界区CSb),结果显示在第三个文本框中。可以看到结
Thread-Communications
- 1、 点“创建线程” 按钮,创建两个线程,一个线程不断对一个变量加1,结果显示在第一个文本框中。另一个线程不断对另一个变量减1,结果显示在第二个文本框中。这两个线程之间没有交互,仅用于演示线程的创建。 2、 演示线程互斥,点“线程互斥” 按钮,创建两个线程,一个线程不断循环,每次循环对共享变量x做100次加1操作(这100次加1操作作为一个临界区CSa),另一个线程不断循环,每次循环对共享变量x做100次减1操作(这100次减1操作作为一个临界区CSb),结果显示在第三个文本框中。可以看到结
ThreadCreate
- 例子中包含了两种创建线程的方法:一种是创建用户自己的线程子类,另一种是在用户自己的类中实现Runable接口。线程优先级以及同步。 -Two examples are included to create threads: one is to create your own thread subclass, the other is a user interface to achieve Runable own class. Thread priority and synchronizati
ball
- 线程演示:动态小球,一个小球代表一个线程,模拟线程的创建。-Thread Demo: Creating a dynamic ball, a ball represents a thread, simulation threads.
thread
- 创建大小为1的固定线程池,同时执行任务(task)的只有一个,其它的(任务)task都放在LinkedBlockingQueue中排队等待执行。(Create a fixed thread pool of size 1, while only one task (task) is executed, and the other tasks (task) are queued in LinkedBlockingQueue for execution.)
JAVA线程池实验报告.docx
- 用JAVA实现一个线程池,线程池在初始状态下没有任何工作线程。当工作队列中有未执行的任务时,分一下两种情况处理: . 如果线程池中工作线程数目为MAX_SIZE,那就什么也不做; . 如果线程池中工作线程数目小于MAX_SIZE,那么创建一个工作线程,使它执行新任务。 对于线程池中空闲的工作线程,如果其闲置时间超过TIMEOUT秒,就销毁该线程。(A thread pool is implemented with JAVA, and the thread pool has no worki