码迷,mamicode.com
首页 >  
搜索关键字:rt thread    ( 14779个结果)
socket 异步接收连接和接收数据
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.... ...
分类:其他好文   时间:2019-05-24 12:45:01    阅读次数:122
线程与进程
一、线程 1、启动方法: 方法一: 步骤1、实例化,t1 = threading.Thread(targe=func, args=()) 步骤2、t1.start() 例子: import threading import time def run(n): print('in the task %s ...
分类:编程语言   时间:2019-05-24 00:34:58    阅读次数:119
多任务: 多进程与多线程
多任务 目的 在同一时间内执行多个任务 形式 并发 : 在一个时间段内,程序交替的执行 并行 : 多核CPU,同一时间点执行多个任务.每个CPU都有自己的任务 多进程 时间片 操作系统分配给程序执行的一小段时间,只有获得了时间片,程序才能执行 基本知识 每一个程序,默认有一个进程,称为主程序 每一个 ...
分类:编程语言   时间:2019-05-23 19:36:23    阅读次数:113
oracle 11g 数据库恢复技术 ---02 控制文件
oracle 11g 数据库恢复技术 02 控制文件 多个oracle进程将控制文件做信息注册、交换的中心,健康的控制文件是数据库启动至mount阶段的必要条件 在备份与恢复中,控制文件同样非常重要,db在mount时,该文件本身的信息就足以判断数据库是否需要介质恢复、上一次db是否正常关闭,在db ...
分类:数据库   时间:2019-05-23 15:38:58    阅读次数:207
socket聊天室
1 #服务端 2 from socket import * 3 import json 4 def recvMsg(s): 5 while True: 6 #接收用户的信息 7 data,address = s.recvfrom(1024) 8 data = json.loads(data) 9 .... ...
分类:其他好文   时间:2019-05-23 12:11:45    阅读次数:93
java.nio.charset.MalformedInputException: Input le
[ERROR - org.apache.flume.source.SpoolDirectorySource$SpoolDirectoryRunnable.run(SpoolDirectorySource.java:256)] FATAL: Spool Directory source source1: { spoolDir: /flume/log/ }: Uncaught exception in SpoolDirectorySource thread. Restart or reconfigure Flume to continue processing. java.nio.charset.MalformedInputException: Input length = 1
分类:编程语言   时间:2019-05-23 00:52:39    阅读次数:156
设计模式之?单例模式
简介 单例模式(Singleton Pattern)是 程序开发 中最简单的设计模式之一。这种类型的设计模式属于创建型模式,它提供了一种创建对象的最佳方式。 这种模式涉及到一个单一的类,该类负责创建自己的对象,同时确保只有单个对象被创建。这个类提供了一种访问其唯一的对象的方式,可以直接访问,不需要实 ...
分类:其他好文   时间:2019-05-22 22:34:59    阅读次数:138
python 一个简单的线程调度
一、基本概念 线程 在一个进程内部要同时运行多个子任务,我们将进程内的子任务称为线程,一个进程内至少包括一个线程,线程是最小的执行单元,没有自己独立的堆栈 线程调度 使用算法是线程按一定的顺序执行 二、完成简单的线程调度 题目要求 有两个线程分别输出0,2,4,6,8和1,3,5,7,9,编写程序使 ...
分类:编程语言   时间:2019-05-22 19:21:32    阅读次数:190
多线程(四、原子类-AtomicInteger)
AtomicInteger,通过Unsafe类来实现线程安全的CAS操作
分类:编程语言   时间:2019-05-22 14:05:10    阅读次数:158
iOS的事件派发
dispatchPreprocessedEventFromEventQueue 先定位;hittest * thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 2.1 * frame #0: 0x000000010 ...
分类:移动开发   时间:2019-05-22 11:24:19    阅读次数:324
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!