搜索资源列表
CPU 测速(MHz)和高精度延时(微秒级)
- 一.高精度延时, 是 CPU 测速的基础 Windows 内部有一个精度非常高的定时器, 精度在微秒级, 但不同的系统这个定时器的频率不同, 这个频率与硬件和操作系统都可能有关。 利用 API 函数 QueryPerformanceFrequency 可以得到这个定时器的频率。 利用 API 函数 QueryPerformanceCounter 可以得到定时器的当前值。 根据要延时的时间和定时器的频率, 可以算出要延时的时间定时器经过的周期数。 在循环里用 QueryP
smsbean
- smsbean短信平台 系统内部全部采用事件激发方式,所有工作线程都是由事件驱动模式,这样保证系统最大工作和效率在数据处理层和网关数据的传输调度上是采用异步,并行的处理模式,在最大程度上减 少IO操作对工作线程的影响,同时对数据库的采用批处理的模式,最大限度减少对数据库的IO操作。-smsbean SMS platform within the system to stimulate the use of the incident, all threads are event-driven
RIP_cws
- 一个RIP协议模拟程序..在一个工作空间之内画上一些路由跟网络,再画上它们之间的连线.系统后台用一个线程实现模拟路由发送路由表信息.输出路由表的更新内容跟过程.-a RIP simulation program .. in a working space within the painting with some routing network painting on the link between them. system with a background thread to achiev
hzh
- 该程序主要完成以下工作: * 1、生成两个发送线程s1,s2和一个接收线程r; * 2、接收线程r每接收到M个来自于s1的数据和N个s2的数据后将它们分别求平均值后输出; * 3、这样的接收过程总共进行3次。
xian
- 线程池用一个双向链表来表示,池中的元素是处于休眠状态的工作线程。ThreadPool类大部分工作都是来维护这个双向链表,当有新的请求到达时,先从表头摘取一个工作线程,将其唤醒转入工作状态。如果线程池为空,则创建一个新的工作线程。-thread pool with a two-way link list said to a pool element is in a state of dormancy threads. ThreadPool class most of the work to mai
ChatSystem
- 运用服务器端多线程来实现一个真正意义上的聊天室应用程序,该程序包括客户端和服务器二部分构成,采用Socket通信机制,服务器程序为Server.java,客户端程序为Client.java。首先启动服务器程序,再启动Client程序,当启动时服务器端首先要询问客户的姓名,然后给所有在场的用户发布新用户加入的消息,当客户端发出新消息时,服务器会将该消息发给所有在场的用户,当再次启动Client,有新用户加入时,服务器会继续做同样的工作,每当有客户输入bye时,服务器将断开与该客户的连接,同时在服务
LoadOnStart
- 设置在web服务器启动的时候启动线程,可以在启动线程中来做一些初始化的工作-Set at a time when web server starts to start the thread, you can start the thread to do some initialization work
javaphone
- 系统内部全部采用事件激发方式,所有工作线程都是由事件驱动模式,这样保证系统最大工作和效率在数据处理层和网关数据的传输调度上是采用异步,并行的处理模式,在最大程度上减 少IO操作对工作线程的影响,同时对数据库的采用批处理的模式,最大限度减少对数据库的IO操作。-System all the way to stimulate the use of events, all worker threads are event-driven model, so to ensure maximum effic
200542539864457
- API 短信网关发送SMS SP 该API以事件驱动的方式工作,调用初试始化函数Startup后,一系列线程组件开始运行,包括Submit发送线程,连接监听线程,Deliver接收和处理线程等。-SMS SP API Java
service
- 实现并发性的方式:1)为每个客户分配一个工作线程 2)创建一个线程池,由其中的工作线程来为客户服务 -Way to achieve concurrency: 1) for each customer is assigned a worker thread 2) Create a thread pool from which the worker thread to serve customers
XC3
- 利用多线程模拟银行的排号器的工作过程,即利用多个线程模拟客户到排号器上取号的过程。-Using multi-threaded simulation Arranging banks working process device, which uses multiple threads on analog customers to take a number Arranging control process.
2
- 多线程编程可以使程序具有多条并发执行线索,就像日常工作中由多人同时合作完成一个任务。 2、线程: (1)线程是指程序的一个指令执行序列,WIN32 平台支持多线程程序,允许程序中存在多个线程。 (2) 在单 CPU 系统中,系统把 CPU 的时间片按照调度算法分配给各个线程,因此各线程实际上是分时执行的,在多 CPU 的 Windows NT 系统中, 同一个程序的不同线程可以被分配到不同的 CPU 上去执行。 -Multithreaded programming can mak
Design-and-Implementation-of-sniffer
- 实现一个功能比较简单的、具有图形界面的Sniffer,主线程响应用户界面操作,工作线程完成抓包等工作-Relatively simple to implement a function, with a graphical interface, Sniffer, the main thread responds to user interface operation, the worker thread to complete packet capture, etc.
Java-network-programming
- 本书从Java发展历程开始讲起,着重介绍了Java网络编程一部分,从一对一单线程,多线程通信的讲解,并附加了例子程序源代码,同时还讲述了与JDBC技术相关的知识,最后,介绍了RMI编程的发展和工作原理,内容详尽-The book' s start from the Java development process, focusing on the part of Java network programming, from one to one single-threaded, multi
TestMina
- 使用MINA框架来开发的网络应用程序代码结构更清晰;MINA框架完成了底层的线程管理;MINA内置的编码器可以满足大多数用户的需求,省去了开发人员消息编码解码的工作。-Use MINA framework to development of network application code structure more clearly MINA framework on the bottom of the thread finish management MINA built-in enco
ioThread
- 该工程是关于java多线程操作和多线程任务处理的解决方式,包括加载一个任务并定时启动该任务,通过类路径来加载该任务。 适用于java多线程多任务工作。-The project is a java multi-threaded operations and multi-threaded task processing, including load a task from time to time and start the task Service, through the classp
mythread
- 多线程学习资料,线程是程序中一个单一的顺序控制流程。在单个程序中同时运行多个线程完成不同的工作,称为多线程。-Multithreaded learning materials, the thread is a single sequential control flow in the program. Accomplish different tasks simultaneously run multiple threads in a single program, called multi-t
mutil-crawler
- 一个采用多线程和多机器协同工作的分布式爬虫-A multi-threaded and multi-machine distributed collaborative work the crawler ~ ~ ~ ~ ~ ~
JAVA线程池实验报告.docx
- 用JAVA实现一个线程池,线程池在初始状态下没有任何工作线程。当工作队列中有未执行的任务时,分一下两种情况处理: . 如果线程池中工作线程数目为MAX_SIZE,那就什么也不做; . 如果线程池中工作线程数目小于MAX_SIZE,那么创建一个工作线程,使它执行新任务。 对于线程池中空闲的工作线程,如果其闲置时间超过TIMEOUT秒,就销毁该线程。(A thread pool is implemented with JAVA, and the thread pool has no worki
thread
- Android移动应用开发,长时间工作另启一个线程(Android mobile application development, long time work and another thread)