搜索资源列表
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
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
multithread2008
- Java的多线程,程序、进程和线程的概念,实现多线程的两种方式,线程同步的原理,线程的死锁,运用wait和notify来实现producer - consumer关系,线程终止的两种情况。-Java multi-threading, procedures, process and thread the concept of the realization of multi-threaded in two ways, the principle of simultaneous threads, t
javasocket
- 1. socket通信:有客户端和服务端的socket代码。 2. 多线程:客户端和服务端各用一线程发送信息;服务端另有一监听线程,用于把超时的信息删除。 这里应用到了同步,使两个线程可以操作同一个map。 -1. Socket communications: There are client and service side of the socket code. 2. Multi-threading: client and server uses one threa
JavaThread
- Java Thread 编程,对于并发操作以及对多线程开发感兴趣的朋友很有帮助,里面详细介绍了线程的建立和多线程思想,对于代码的效率更是坐了很好的分析-Java Thread Programming for concurrent operation, as well as the development of multi-threaded helpful Friend of interest, which detailed the thread and set up many threads o
Java
- 4、多线程有几种实现方法,都是什么?同步有几种实现方法,都是什么? 答:多线程有两种实现方法,分别是继承Thread类与实现Runnable接口 同步的实现方面有两种,分别是synchronized,wait与notify -4, multi-threaded implementation has several methods, what is? Synchronization has several methods of implementation are what? A: T
java_threaddemo
- 哲学家就餐是一个经典的Java多线程编程的实例,这是图形版。涉及到线程同步与互斥,临界区访问问题以及避免死锁的方法。 -Dining Philosophers is a classic example of Java multi-threaded programming, it is graphic version. Related to thread synchronization and mutual exclusion, critical access issues and ways to
smsSend
- java实现线程池,通过最简单的调用方法来实现配置文件中的配置,从而轻松实现多线程-java thread pool implementation, through the most simple way to achieve the configuration file called the configuration, and thus easy to achieve multi-threaded
javajiaocheng
- 本书包含java的安装,java和applet程序的介绍,面向对象的程序设计,绘图和各种类的介绍,图形接口软件,线程和多媒体,sql和servlet程序设计等内容 -This book contains the java installation, java and applet process descr iption, object-oriented programming, graphics, and various types of presentations, graphical in
JavaMoreThread
- java多线程开发的例子:1.多线程实现(一个线程实现GUI界面并输出数字,另一个线程在控制台输出数字);2.输出不同格式的当前系统时间;3.实现生命周期;4.实现电子时钟-the development of multi-threaded java examples: 1. multi-threading implementation (GUI interface and a thread to achieve the output figures, another thread in the
JavaMoreThreadCT
- 多线程:1.实现一个GUI界面并输出数字,另一线程在控制台输出数字;2.输出不同格式的系统当前时间;3.实现电子钟(十分秒格式)。-Multi-threading: 1. To achieve a GUI interface and output figures, the other thread in the console output figures 2. The output of the system, the current time in different formats 3
Java-run
- 1. 有一个南北向的桥,只能容纳一个人,现桥的两边分别有10人和12人,编制一个多线程程序让这些人到达对岸,每个人用一个线程表示,桥为共享资源。 2. 利用多线程编写龟兔赛跑程序。 乌龟:速度慢,休息时间短; 兔子:速度快,休息时间长; -1. There is a north-south bridge can only accommodate one person is on both sides of the bridge 10 and 1
Tojsendmsg
- 多线程循环尝试连接url链接,连接成功则结束此线程,连接失败则重复尝试直到成功为止-Multi-threaded loop trying to connect url link, the end of this thread is a successful connection, the connection fails, repeat attempts until success
java socket 编程
- 本例包含服务器端和客户端,多线程,每线程多次发送,Eclipse工程,启动服务器使用 nu.javafaq.server.NioServer,启动客户端使用 nu.javafaq.client.Nio-This example contains the server side and client, multi-threaded, each thread repeatedly sent, Eclipse project, start the server using the nu.javafaq
ServerThread
- 多用户聊天的服务器端的线程机制,发出来大家指点指点,我也可以学习学习。-Multi-user chat server thread mechanism, given that we' re all pointing pointing, I can learn from.
ThreadDemo3
- 该程序是关于多线程的,是用同步方法的方式解决多线程同步存在局限性的例子-The program is about multi-threaded, synchronization method is the way to solve the limitations of many examples of thread synchronization
java
- 有一个南北向的桥,只能容纳一个人,现桥的两边分别有10人和12人,编制一个多线程程序让这些人到达对岸,每个人用一个线程表示,桥为共享资源-A north-south bridge can only accommodate one person, on both sides of the bridge is now 10 and 12 respectively, the preparation of a multi-threaded program to allow these people to
wangluobianchengshiyan(2)
- 有一个南北向的桥,只能容纳一个人,现桥的两边分别有10人和12人,编制一个多线程程序让这些人到达对岸,每个人用一个线程表示,桥为共享资源。-A north-south bridge can only accommodate one person, on both sides of the bridge is now 10 and 12 respectively, the preparation of a multi-threaded program to allow these people t
2
- 多线程编程可以使程序具有多条并发执行线索,就像日常工作中由多人同时合作完成一个任务。 2、线程: (1)线程是指程序的一个指令执行序列,WIN32 平台支持多线程程序,允许程序中存在多个线程。 (2) 在单 CPU 系统中,系统把 CPU 的时间片按照调度算法分配给各个线程,因此各线程实际上是分时执行的,在多 CPU 的 Windows NT 系统中, 同一个程序的不同线程可以被分配到不同的 CPU 上去执行。 -Multithreaded programming can mak
Ball
- 用多线程实现一个弹球小游戏,小球颜色,速度均随机,每个小球都是一个独立的线程。 -Multi-threaded implementation with a ball game, ball color, speed are random, each ball is a separate thread.