搜索资源列表
traffic
- 十字路口模拟交通灯程序,能够通过线程模拟十字路口随机红绿灯下各车运行情况。-Traffic light intersection simulation program that can simulate a crossroads by a random traffic light thread under the operation of the vehicle.
ThreadScan
- 利用AWT写的JAVA自动端口扫面小程序,通过后台线程不断扫描端口来侦测是否有会话-Small program written in JAVA using AWT automatic port sweep surface by a background thread continuously scan port to detect whether the session
chatserver
- 利用Nio多线程实现用户随机聊天的一个简单例子 服务器用NIO技术实现,避免了服务器需要为每一个客户开启一个线程,并用多线程实现读写操作。-Multithread by Nio the user a simple example of random chat server technology with the NIO, to avoid the server needs to open a thread for each client, and read and write operati
web
- 1.建立服务器监听程序,等待web浏览器发送请求 2.当接收到web服务器的链接请求时新建响应线程接受web服务器的访问请求 3.响应线程发送浏览器请求的页面给web浏览器,关闭打开的资源结束自身线程。 -1 Create the server listener to wait for the web browser sends a request when receiving links to a web server request a new response thread r
ex09
- 加分程序。请编写一个程序,先产生一个大于10的随机整数n,再产生n个随机数并存放于数组中,然后将这n个数相加,并求出这n个数的和s1, 同时计算出求s1所需的时间t1.接着让程序创建2个线程并发的进行相加运算。其中一个线程计算前一半数之和s21,后一个线程计算后一半数之和s22, 然后将s21与s22这两个数相加得到和s2,计算采用双线程进行求和运算所花费的时间t2。请比较s1和s2,以及t1和t2的大小-Bonus program. Write a program, first create
Jvm
- java jni thread 线程源码例子-java jni thread thread-source examples
concurrent.tar
- concurrent是一个java线程池开源包-concurrent thread pool is a java open-source package
TreadTest01
- 多线程简单例程,有三个线程,一个主线程,两个子线程,两个子线程分别同时进行计时并显示出来,其中一个每隔一秒计时一次,另一个每隔两秒计时一次-Multithreading simple routine, three threads, a main thread, the two sub-thread, two sub-thread timing and displayed every second timing once another tick once every two seconds
Thread_Experiment
- Write a multithreaded Java, Pthreads, or WIN32 program that outputs prime numbers. This program should work as follows: The user will run the program and will enter a number on the command line. The program will then create a separate thread that out
pooling
- pooling.zip的内容介绍了java中的线程池的使用方法。-pooling.zip content introduced in java to use the thread pool.
Julia
- 通过线程控制来打印出julia集,可以控制线程速度和个数-Through the thread control to print out julia set, you can control the speed and the number of threads
txt-time
- Writetxt.java是一个向txt文本文档写入数据的类,有两个参数file和txt,分别 代表要写入的文件名和数据。 DisplaySysTime.java是一个调用系统实时时间的线程类-Writetxt.java is a text document written to the txt data type, there are two parameters file and txt, representing the need to write the file name an
bang
- 利用多线程同步机制模拟银行帐号的存款取款操作-Using multi-thread synchronization mechanism for simulation of bank account deposits of money to operate
Critical
- Lesson16线程同步与异步套接字编程-Lesson16 thread synchronization with asynchronous socket programming
WlbSocket
- 一个socket练习程序,通过jdk1.5的功能,通过线程池的功能实现的。-A socket practice procedures jdk1.5 features, functionality through the thread pool achievable.
readandwriter
- 读者和写者线程进程同步问题,比较详细,读者-写者的读写限制(包括读者优先和写者优先)-Readers and those who write thread synchronization process, more detailed, and readers- to write the read and write restrictions (including the readers who write priority and priority)
example
- 短信发送的程序。JAVA编写,包含线程和主要发送程序-SMS procedures. JAVA prepared, including the main thread and send procedures
ProducerConsumer
- 生产者与消费者线程同步问题的一个模拟,帮助更深理解。采用JAVA面向对象的实现-Producers and consumers, thread synchronization issues in a simulated, helping a deeper understanding. Used to achieve the object-oriented JAVA
ThreadExample
- 线程的4种状态 (1)新建 (2)运行 (3)中断 (4)死亡-The status of four kinds of thread (1) new (2) run (3) interrupt (4) death
JAVA_yuyanrumen
- 第一章 Java语言的产生及其特点 第二章 Java程序开发与运行环境 第三章 Java程序设计基础 第四章 Java应用程序的基本框架 第五章 Java的类 第六章 Java图形用户接口 第七章 多线程 第八章 Java的"异常" 第九章 Java输入输出操作 -The first chapter of the Java language and its characteristics have a chapter Java developers