Through its implementation, this project will familiarize you with the creation and execution of threads, and with the use of the Thread class methods...
分类:
编程语言 时间:
2014-07-28 14:44:03
阅读次数:
467
ALTER SYSTEM ARCHIVE LOGThread 1 cannot allocate new log, sequence 2594Checkpoint not complete这个实际上是个比较常见的错误。通常来说是因为在日志被写满时会切换 日志组,这个时候会触发一次checkpoint...
分类:
其他好文 时间:
2014-07-28 13:45:10
阅读次数:
197
四轴飞行器1.2.2 RT-Thread 串口 本来是打算说根据RT-Thread的设备管理提供的驱动接口些串口驱动的,但是仔细一看,我去,串口驱动写好了,只需要调用就可以了。下面我们说说具体怎么使用的。 首先在rt_hw_board_init()函数里面有个rt_hw_usart_init...
分类:
其他好文 时间:
2014-07-28 11:17:30
阅读次数:
297
import java.util.Queue;import java.util.concurrent.LinkedBlockingQueue;public class Consumer extends Thread { private String product; private Queue st...
分类:
编程语言 时间:
2014-07-27 23:25:39
阅读次数:
258
买的飞控板到了,开始写下位机的程序了,本来打算用UCOS的,因为以前用过,比较熟悉,可以很快上手,不过板子的卖家推荐了RT-Thread,以前虽然有接触过,但是没用过,于是去官网看了下,感觉还不错。其一这是咱们国人写的,其二USOS有的基本任务调度功能它都有了,其三它的GUI貌似原生支持中文(不确定...
分类:
其他好文 时间:
2014-07-27 23:17:49
阅读次数:
262
class Demo extends Thread{ public Demo(String name){ super(name); } public void run(){ for(int i=0; i<6; ++i){ System.out.println("i...
分类:
编程语言 时间:
2014-07-27 23:10:19
阅读次数:
248
Exception in thread "main" org.apache.xmlbeans.impl.values.XmlValueDisconnectedException at org.apache.xmlbeans.impl.values.XmlObjectBase.check_orphan...
分类:
其他好文 时间:
2014-07-27 21:55:09
阅读次数:
296
原文网址http://www.lupaworld.com/thread-868507-1-1.html问题描述: 双系统(win7+ubuntu)ubuntu系统提醒磁盘空间不足,又不想重装系统。解决思路:第一步,在win7下划出一块可用空间;第二步,利用gparted软件将此可用空间划给ubunt...
递归输出就行了
#include
using namespace std;
struct tree{
int dot;
string s;
}t[1020];
int si[1020],a[1020][1020];
void print(int x)
{
for(int i=0;i<=si[x]-1;i++)
{
for(int j=1;j<=t[...
分类:
其他好文 时间:
2014-07-27 11:48:53
阅读次数:
188
2014年7月26日 内核抢占和内核控制路径的设计
内核抢占的一种定义:如果进程正在内核态执行内核函数时,允许发生内核切换(就是被替换的进程是内核函数所在进程),这个内核就是抢占的。
linux内核提供了内核抢占的开启和关闭功能,在current_thread_info的preempt_count字段大于0时,内核就是不能抢占的。可以通过preempt_disable和preempt_...
分类:
系统相关 时间:
2014-07-27 11:29:02
阅读次数:
255