码迷,mamicode.com
首页 >  
搜索关键字:rt thread    ( 14779个结果)
第八章网络编程进阶
137 # -*- coding:utf-8 -*- from threading import Thread,currentThread,activeCount import time def task(n): print("线程名:\t%s\t%s" % (currentThread(),n)) ...
分类:其他好文   时间:2018-11-26 15:03:00    阅读次数:205
MySQL主从切换
主备切换:1、主库停止应用,确认主库不再有数据生成将主库改为read_only模式 mysql> set global super_read_only=on;Query OK, 0 rows affected (0.00 sec) mysql> set global read_only=on;Que ...
分类:数据库   时间:2018-11-26 13:52:09    阅读次数:208
Android App 启动 Activity 创建解析
继承实现类关系: ActivityThread thread = new ActivityThread(); Context->ContextImpl ContextImpl context = new ContextImpl(null, mainThread, packageInfo, activ ...
分类:移动开发   时间:2018-11-26 11:05:02    阅读次数:167
JavaScript的异步处理
Javascript语言的执行环境是"单线程"(single thread,就是指一次只能完成一件任务。如果有多个任务,就必须排队,前面一个任务完成,再执行后面一个任务,以此类推)。 为了解决这个问题,Javascript语言将任务的执行模式分成两种:同步(Synchronous)和异步(Async ...
分类:编程语言   时间:2018-11-26 00:15:40    阅读次数:216
java多线程快速入门(十九)
如何停止线程 1、使用stop方法强行终止线程(这个方法不推荐使用,可能会出现业务操作未执行完,线程中断了) package com.cppdy; class MyThread15 extends Thread{ @Override public synchronized void run() { ...
分类:编程语言   时间:2018-11-26 00:00:30    阅读次数:291
java核心技术-多线程基础
java核心技术-多线程基础进程、线程?进程(Process)是程序的运行实例。例如,一个运行的Eclipse就是一个进程。进程是程序向操作系统申请资源(如内存空间和文件句柄)的基本单位。线程(Thread)是进程中可独立执行的最小单位。一个进程可以包含多个线程。进程和线程的关系,好比一个营业中的饭店与其正在工作的员工之间的关系。1.1线程的创建、启动与运行在Java中实现多线程主要用两种手段,一
分类:编程语言   时间:2018-11-25 22:29:43    阅读次数:275
java多线程快速入门(十六)
ThreadLocal关键字实现每个线程有自己的变量 ...
分类:编程语言   时间:2018-11-25 20:33:53    阅读次数:154
new
``` #include "mbed.h" #include "MCP23017.h" #include "WattBob_TextLCD.h" #include "TCS3472_I2C.h" #include "stdint.h" #include "VL6180.h" #include "rt... ...
分类:其他好文   时间:2018-11-25 17:43:04    阅读次数:129
error
``` #include "mbed.h" #include "MCP23017.h" #include "WattBob_TextLCD.h" #include "TCS3472_I2C.h" #include "stdint.h" #include "VL6180.h" #include "rt... ...
分类:其他好文   时间:2018-11-25 14:43:07    阅读次数:105
【模板】快速排序
1 int n; 2 int a[MAX_N]; 3 4 void Quick_Sort(int lt, int rt) 5 { 6 int key = a[lt + rt >> 1]; 7 int i = lt, j = rt; 8 while(i key) --j; 12 if(i <= j) ... ...
分类:编程语言   时间:2018-11-25 14:40:11    阅读次数:144
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!