搜索资源列表
实现对进程生命周期全过程的管理
- 1. 实现对进程生命周期全过程的管理,包括进程的创建、撤销、执行、阻塞、唤醒、挂起、激活等。 2. 实现对多个进程并发执行的管理。 -1. Process to achieve the whole process of life-cycle management, including the process of the creation, revocation, execution, blocking, wake up, suspend, activate and so on. 2
send_mac
- PHP实现的远程开机(远程唤醒),挂到Apache或IIS下即可轻松实现Web方式的远程开机功能。本例需要socket库支持。-PHP achieve remote boot (Wake-On-LAN), linked to the Apache or IIS can easily achieve under the Web-function remote boot. In this case support the need for socket library.
BluetoothDemo
- JavaMe环境下,蓝牙的使用举例,可惊醒简单的蓝牙传输操作。-JavaMe environment, for example, the use of bluetooth wireless transmission can wake the simple operation.
email
- 邮件发送。。 通过2个线程发送邮件,一个用来读取邮件列表,不为空休眠,唤醒发送邮件的线程-Mail. . . . Send a message through the two threads, one for reading e-mail list is not empty sleep, wake up to send the message thread. . .
WakeOnLan
- this code to solving the wake of lan network
SampleCode_WOL
- sample program for wake on lan
wakeonlan
- 局域网唤醒网页,支持用户注册功能,不使用数据库-Wake on LAN page, support for user registration function, do not use the database
ProducerAndConsumer
- 生产者与消费者问题的实现的java版本,加入了同步、等待与唤醒的功能。-Producers and consumers problem achieved in java , adding the synchronization, waiting and wake-up function.
MultiThread
- 程序中创建了主程序线程、thread1和thread2三个线程,thread1是ThreadUseExtends类的对象,通过继承Thread实现线程,thread2是ThreadUseRunnable类的对象,通过实现Runnable接口实现线程,主程序主线程睡眠7秒,thread1线程睡眠10秒,thread2睡眠1秒,程序执行过程中首先执行主线程,由主线程启动thread1,thread1启动后,需要睡眠10秒,接着主线程睡眠7秒,那么势必主线程醒来时thread1还处于睡眠状态,所以th
j2se_lesson2_thread
- Join方法实现是通过wait(小提示:Object 提供的方法)。 当main线程调用t.join时候,main线程会获得线程对象t的锁(wait 意味着拿到该对象的锁),调用该对象的wait(等待时间),直到该对象唤醒main线程,比如退出后-Join the wait (Tip: the Object method). When the main thread call t.join time, the main thread will get the lock of the thread
smookers
- 【问题描述】吸烟者问题(1971,Patil):在一个房间内有三位吸烟者、一位材料供应者。其中: a) 吸烟者: 需要拥有三种材料“烟草(Tobacco)、卷烟纸(Cigarette-paper)、火柴(Match)”才能吸烟: 第一位吸烟者有丰富的烟草; 第二位吸烟者有丰富的卷烟纸; 第三位吸烟者有丰富的火柴; 当吸烟者拿到所需要的材料后,唤醒供应者进行下一次投放;-Proble
BarberSleep
- 理发店里有一位理发师,一把理发椅和 N 把供等候理发的顾客坐的椅子 如果没有顾客,则理发师便在理发椅上睡觉。当一个顾客到来时,他必须先唤醒理发师。如果顾客到来时理发师正在理发,则如果有空椅子,可坐下来等;否 则离开。操作系统信号量控制进程同步。-Barbershop, a hairdresser, a barber chair and N customer sat waiting Barber chair if no customers, the barber would sleep in th
monkey-get-one
- 话说某天一艘海盗船被天下砸下来的一头牛给击中了,5个倒霉的家伙只好逃难到一个孤岛,发现岛上孤零零的,幸好有有棵椰子树,还有一只猴子!大家把椰子全部采摘下来放在一起,但是天已经很晚了,所以就睡觉先. 晚上某个家伙悄悄的起床,悄悄的将椰子分成5份,结果发现多一个椰子,顺手就给了幸运的猴子,然后又悄悄的藏了一份,然后把剩下的椰子混在一起放回原处,最后还是悄悄滴回去睡觉了. 又过了一会 ...... 又过了一会 ... 总之5个家伙都起床过,都做了一样的事情。早上大家都起床,
Test31
- 编写线程,模拟上课情形,三个学生在课堂上睡觉,三个学生分别打算睡10分钟,20分钟,30分钟,当老师准备上课时,老师叫醒了第一个和第二个同学,第一个同学醒后叫醒第三个同学-Writing thread, simulated class situation, three students to sleep in class, three students were going to sleep 10 minutes, 20 minutes, 30 minutes, when the teacher
banker
- 银行家算法,根据已有的资源和次课需要训醒的进程对资源的需求分配内存-Bankers algorithm, based on the existing resources and sub-classes need to wake up the process of training the demand for resources allocated memory
PowerManager_WakeLockTest
- Power Manager Wake Lock Test Source Code for Andriod.
JTHREADSYNCH
- java 强大的多线程机制。生产者和消费者共享一个数据,当数据为0 时,消费者不可访问,生产者可访问数据,每次访问数据加1;当数据到达100 时,生产者唤醒消费者,同时自身不可访问数据,消费者可访问数据,每次访问数据减1,直到数据为0,消费者唤醒生产者,同时自身不可访问数据,如此循环。每次访问信息,显示在JTextArea 对象中。-Powerful java multithreading. Share a data producer and consumer, when the data is
jthreadsynch
- Java线程间同步互斥,在实际的编程中,经常要处理线程间的同步互斥问题。Java 语言内在强大的多线程支持使得处理这类问题变得相对来说比较简单。本例将模仿经典的线程同步互斥例子——生产者和消费者问题,来演示 java 强大的多线程机制。生产者和消费者共享一个数据,当数据为0 时,消费者不可访问,生产者可访问数据,每次访问数据加1;当数据到达100 时,生产者唤醒消费者,同时自身不可访问数据,消费者可访问数据,每次访问数据减1,直到数据为0,消费者唤醒生产者,同时自身不可访问数据,如此循
Java-xianchengtongbuhuchi
- Java线程间同步互斥,在实际的编程中,经常要处理线程间的同步互斥问题。Java 语言内在强大的多线程支持使得处理这类问题变得相对来说比较简单。本例将模仿经典的线程同步互斥例子——生产者和消费者问题,来演示 java 强大的多线程机制。生产者和消费者共享一个数据,当数据为0 时,消费者不可访问,生产者可访问数据,每次访问数据加1;当数据到达100 时,生产者唤醒消费者,同时自身不可访问数据,消费者可访问数据,每次访问数据减1,直到数据为0,消费者唤醒生产者,同时自身不可访问数据,如此循
ThreadCommuncation
- Java中线程通信学习要点及源码练习,ResourceDemo学习线程通信,ResourceDemo2学习等待、唤醒机制,ResourceDemo3学习同步机制和代码优化,ProcusDemo学习线程中的一些问题,ProCusDemo2学习java1.5后中的问题解决办法,StopThreadDemo学习停止线程,最后ThreadTest测试一下所学内容。-Java s thread communication learning point and source code.ResourceDem