搜索资源列表
xianchengtongbu
- 多线程协同工作过程中一些线程等待另一线程提供资源所以要线程之间要同步进行-multithreaded process to work together some threads awaiting another thread there to provide resources between the threads simultaneously
gif动画等待线程
- jbuilder下开发的等待提示线程,如果你的程序执行很慢,可以挂一个等待线程动画,这个的GIF动画一般,可以根据需要改写,内附使用说明。-JBuilder under development suggest waiting threads, if your procedure is very slow, and can carry a thread wait for animation, the GIF animation in general, it may need to be rewri
IOCP.rar
- IOCP完成端口与高性能服务器程序开发 主程序: 1.监听一个端口 2.等待连接 3.当有连接来时 4.启一个线程对这个客户端进行处理 5.回到2 服务线程: 1.读客户端请求 2.如果客户端不再有请求,执行6 3.处理请求 4.返回操作结果 5.回到1 6.退出线程 ,IOCP完成端口与高性能服务器程序开发 主程序: 1.监听一个端口 2.等待连接 3.当有连接来时 4.启一个线程对这个客户端进行处理 5.回到2 服务线程: 1.读客户端请求
同一个进程地址空间内执行的七个线程
- 本实验设计在同一个进程地址空间内执行的七个线程。三个生产者线程四个消费者线程。生产者线程生产物品,然后将物品放置在一个空缓冲区中供消费者线程消费。消费者线程从缓冲区中获得物品,然后释放缓冲区。生产者线程生产物品时,若无空缓冲区可用,生产者线程必须等待消费者线程释放出一个空缓冲区;消费者线程消费物品时,若无满的缓冲区,消费者线程将被阻塞,直到新的物品被生产出来。-The experimental design in the same process address space implementa
linux_socket
- linux下socket编程源码,提供一个类,所有函数全部采用底层函数。类中包含ReadData(),SendData()等函数供网络读写。另外提供一个服务线程等待client的连接。代码有中文注释。-socket programming under linux source to provide a class, all functions all use the underlying function. Category contains ReadData (), SendData () f
QQliaotiangongju
- 本程序采用tcp/ip socket多线程编程,并对一些重要的同步操作做了超时控制,以减少等待的时间,像连接服务器,等待对方接收文件等。基本功能跟QQ类似,能进行多点的聊天和点对点的文件传送。-This procedure using tcp/ip socket multi-threaded programming, a number of important and did a time-out synchronization control, in order to reduce the w
SocketCAsyncSocketCSocket
- Socket,CAsyncSocket,CSocket介绍 Socket有同步阻塞方式和异步非阻塞方式两种使用,事实上同步和异步在我们编程的生涯中可能遇到了很多,而Socket也没什么特别。虽然同步好用,不费劲,但不能满足一些应用场合,其效率也很低。 也许初涉编程的人不能理解"同步(或阻塞)"和"异步(或非阻塞)",其实简单两句话就能讲清楚,同步和异步往往都是针对一个函数来说的,"同步"就是函数直到其要执行的功能全部完成时才返回,而"异步"则是,函数仅仅做一些简单的工作,然后马上返回
Event
- 使用事件对象进行线程同步:先创建线程,然后向内存中复制数据,被创建的线程等待置位事件,在读内存-Use the event object for thread synchronization: first create a thread, and then copy the data to the memory, was created by a thread to wait for the set events, reading the memory
synchronization
- windows线程的创建和用线程等待实现线程的同步-windows thread creation and the use of threads waiting to achieve thread synchronization
linux线程
- linux线程的实验报告,基于linux编写了多线程通信,以及等待延时10秒,若无数据将发送timeout(Linux thread experimental report, based on Linux written multi-threaded communication, and wait for 10 seconds delay, if no data will send timeout)
xiancheng
- 通过代码实现线程间通讯,实现等待、唤醒等机制。(Thread communication is realized through code.)
ThreadPool
- 线程池是一种多线程处理形式,处理过程中将任务添加到队列,然后在创建线程后自动启动这些任务。线程池线程都是后台线程。每个线程都使用默认的堆栈大小,以默认的优先级运行,并处于多线程单元中。如果某个线程在托管代码中空闲(如正在等待某个事件),则线程池将插入另一个辅助线程来使所有处理器保持繁忙。如果所有线程池线程都始终保持繁忙,但队列中包含挂起的工作,则线程池将在一段时间后创建另一个辅助线程但线程的数目永远不会超过最大值。超过最大值的线程可以排队,但他们要等到其他线程完成后才启动。(A thread p
lock和多线程
- C#,lock和多线程的简单例子,使用线程的好处·使用线程可以把占据长时间的程序中的任务放到后台去处理 ·用户界面可以更加吸引人,这样比如用户点击了一个按钮去触发某些事件的处理,可以弹出一个进度条来显示处理的进度 ·程序的运行速度可能加快 ·在一些等待的任务实现上如用户输入、文件读写和网络收发数据等,线程就比较有用了。在这种情况下可以释放一些珍贵的资源如内存占用等等。(A simple example of C#, lock, and multithreading, the b
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.)
实现一个取消操作
- 一个在多线程中实现线程互相通信,取消某些线程的示例,比如等待时间过久就取消操作(A thread to achieve mutual communication in multiple threads, cancel some threads of the sample, such as the waiting time is too long will cancel the operation)
多线程调度——哲学家就餐
- 利用JAVA线程,解决哲学家就餐问题。当某一哲学家线程执行取得筷子方法时, 程序会根据该线程的名称来确定该线程需要使用哪两支筷子,并且分辨出哪支筷子编号是奇数,按照先奇后偶的顺序来试图取得这两支筷子。 如果这两支筷子都未被使用(即对应的数组元素值为 false),该哲学家线程即可先后取得这两支筷子进餐,否则会在竞争某支筷子失 败后执行 wait()操作进入 Chopsticks 类实例的等待区, 直到其他的哲学家线程进餐完毕放下筷子时用 notifyAll()将其唤醒。当某一哲学家线程放下筷子时
select_client
- Socket多线程通信客户端, 指两个或两个以上的进程在执行过程中,因争夺资源而造成的一种互相等待的现象,若无外力作用,它们都将无法推进下去。(Socket multithreading communication client refers to a phenomenon of waiting for two or more processes in the process of execution, which is caused by competing for resources. If
dlldiao
- 网上有好多使用多线程弹出式等待窗口作为程序中较长时间后台运行提示的,但是做的都不完善,尤其是用 waitThread.Abort() *线程时容易产生异常,进而出错。本程序是比较完善的改进,利用多线程弹出等待窗口,并根据后台程序的运行需要实时发出运行状态信息到等待窗口中,当后台程序运行结束时给弹出窗口线程发出结束信号,让线程自行终止。程序运行环境 vs.net 2010(There are many online multi thread pop-up waiting windows as a
pbthreadpool
- pb线程池,支持线程管理、等待队列、控制并发数(thread pool for pb,management for thread,waiting queue and concurrency)
多线程实现的例程
- PB多线程的源码例子,用于多线程并行,可不用等待timer时间的顺序执行。(A source code example of PB multithreading)